<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 1.3 &#8212; A first look at variables (and cin)</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 12:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Bombe_</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96882</link>
		<dc:creator>Bombe_</dc:creator>
		<pubDate>Fri, 27 Jan 2012 22:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96882</guid>
		<description>Here&#039;s one I made. I didn&#039;t really look at this too much but I use my knowledge from java here:

&lt;code&gt;
#include &lt;iostream&gt; // tells compiler what cout and endl do
double num; // declare variables
double num1; // double means you can use decimals!

int main() // program runs main
{
using namespace std; // make life easier, instead of std::cout and std::endl

   cout &lt;&lt; &quot;Welcome to my calculator! \n&quot; &lt;&lt; endl; // displays welcome!   
   cout &lt;&lt; &quot;Please enter your first number:&quot; &lt;&lt; endl; // tells user to enter num
   cin &gt;&gt; num;  // lets person enter num and stores it into num
   cout &lt;&lt; &quot;Please enter your second number:&quot; &lt;&lt; endl; // tells user to enter num1
   cin &gt;&gt; num1; // lets person enter num1 and stores it into num1
   cout &lt;&lt; &quot;The result is: &quot; &lt;&lt; num + num1  &lt;&lt; endl; // Add num + num1

   system(&quot;pause&quot;); // Pauses the cmd from closing.
   return 0; // return nothing
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s one I made. I didn&#8217;t really look at this too much but I use my knowledge from java here:</p>
<p><code><br />
#include &lt;iostream&gt; // tells compiler what cout and endl do<br />
double num; // declare variables<br />
double num1; // double means you can use decimals!</p>
<p>int main() // program runs main<br />
{<br />
using namespace std; // make life easier, instead of std::cout and std::endl</p>
<p>   cout &lt;&lt; &quot;Welcome to my calculator! \n&quot; &lt;&lt; endl; // displays welcome!<br />
   cout &lt;&lt; &quot;Please enter your first number:&quot; &lt;&lt; endl; // tells user to enter num<br />
   cin &gt;&gt; num;  // lets person enter num and stores it into num<br />
   cout &lt;&lt; &quot;Please enter your second number:&quot; &lt;&lt; endl; // tells user to enter num1<br />
   cin &gt;&gt; num1; // lets person enter num1 and stores it into num1<br />
   cout &lt;&lt; &quot;The result is: &quot; &lt;&lt; num + num1  &lt;&lt; endl; // Add num + num1</p>
<p>   system(&quot;pause&quot;); // Pauses the cmd from closing.<br />
   return 0; // return nothing<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basic addressing and variable declaration &#171; Learn C++ Programming</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96836</link>
		<dc:creator>Basic addressing and variable declaration &#171; Learn C++ Programming</dc:creator>
		<pubDate>Fri, 13 Jan 2012 08:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96836</guid>
		<description>[...] This lesson builds directly on the material in the section “A first look at variables“. [...]</description>
		<content:encoded><![CDATA[<p>[...] This lesson builds directly on the material in the section “A first look at variables“. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96763</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96763</guid>
		<description>1&gt;------ Build started: Project: Hell, Configuration: Debug Win32 ------
1&gt;  variables.cpp
1&gt;  LINK : C:\Users\Administrator\Documents\Visual Studio 2010\Projects\Hell\Debug\Hell.exe not found or not built by the last incremental link; performing full link
1&gt;LINK : fatal error LNK1561: entry point must be defined
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Umm... okay, im sure there is a coding problem on my end, but what?</description>
		<content:encoded><![CDATA[<p>1&gt;&#8212;&#8212; Build started: Project: Hell, Configuration: Debug Win32 &#8212;&#8212;<br />
1&gt;  variables.cpp<br />
1&gt;  LINK : C:\Users\Administrator\Documents\Visual Studio 2010\Projects\Hell\Debug\Hell.exe not found or not built by the last incremental link; performing full link<br />
1&gt;LINK : fatal error LNK1561: entry point must be defined<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
<p>Umm&#8230; okay, im sure there is a coding problem on my end, but what?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96762</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96762</guid>
		<description>there thats what your looking at</description>
		<content:encoded><![CDATA[<p>there thats what your looking at</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96761</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96761</guid>
		<description>&lt;code&gt;
#include &lt;iostream&gt;

int variables ()
{
	using namespace std;

	cout &lt;&lt; &quot;Enter a Number: &quot;;
	int b; 
	cin &gt;&gt; b;
	
	int e;
	e = b*10;
	
	int l;
	l = e/100;
	
	int a;
	a = e+b;
	
	int d;
	d = l+e;
	
	int s;
	s = 2*(d-a);
	
	int m;
	m = b+l;
	
	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;
	 

	return 0;

}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code><br />
#include &lt;iostream&gt;</p>
<p>int variables ()<br />
{<br />
	using namespace std;</p>
<p>	cout &lt;&lt; &quot;Enter a Number: &quot;;<br />
	int b;<br />
	cin &gt;&gt; b;</p>
<p>	int e;<br />
	e = b*10;</p>
<p>	int l;<br />
	l = e/100;</p>
<p>	int a;<br />
	a = e+b;</p>
<p>	int d;<br />
	d = l+e;</p>
<p>	int s;<br />
	s = 2*(d-a);</p>
<p>	int m;<br />
	m = b+l;</p>
<p>	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;</p>
<p>	return 0;</p>
<p>}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96760</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96760</guid>
		<description>&lt;code&gt;
#include 

int variables ()
{
	using namespace std;

	cout &lt;&gt; b;
	
	int e;
	e = b*10;
	
	int l;
	l = e/100;
	
	int a;
	a = e+b;
	
	int d;
	d = l+e;
	
	int s;
	s = 2*(d-a);
	
	int m;
	m = b+l;
	
	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;
	 

	return 0;

}
&lt;code&gt;</description>
		<content:encoded><![CDATA[<p><code><br />
#include </p>
<p>int variables ()<br />
{<br />
	using namespace std;</p>
<p>	cout &lt;&gt; b;</p>
<p>	int e;<br />
	e = b*10;</p>
<p>	int l;<br />
	l = e/100;</p>
<p>	int a;<br />
	a = e+b;</p>
<p>	int d;<br />
	d = l+e;</p>
<p>	int s;<br />
	s = 2*(d-a);</p>
<p>	int m;<br />
	m = b+l;</p>
<p>	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;</p>
<p>	return 0;</p>
<p>}<br />
</code><code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96759</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96759</guid>
		<description>i give i cant get a proper post in</description>
		<content:encoded><![CDATA[<p>i give i cant get a proper post in</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96758</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96758</guid>
		<description>&lt;code&gt;
#include 

int variables ()
{
	using namespace std;

	cout &lt;&gt; b;
	
	int e;
	e = b*10;
	
	int l;
	l = e/100;
	
	int a;
	a = e+b;
	
	int d;
	d = l+e;
	
	int s;
	s = 2*(d-a);
	
	int m;
	m = b+l;
	
	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;
	 

	return 0;

}
&lt;code /&gt;</description>
		<content:encoded><![CDATA[<p><code><br />
#include </p>
<p>int variables ()<br />
{<br />
	using namespace std;</p>
<p>	cout &lt;&gt; b;</p>
<p>	int e;<br />
	e = b*10;</p>
<p>	int l;<br />
	l = e/100;</p>
<p>	int a;<br />
	a = e+b;</p>
<p>	int d;<br />
	d = l+e;</p>
<p>	int s;<br />
	s = 2*(d-a);</p>
<p>	int m;<br />
	m = b+l;</p>
<p>	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;</p>
<p>	return 0;</p>
<p>}<br />
<code /></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96757</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96757</guid>
		<description>yes i do have #include iosteam in there with its normal pointy thingys.</description>
		<content:encoded><![CDATA[<p>yes i do have #include iosteam in there with its normal pointy thingys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homesweetrichard</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-96756</link>
		<dc:creator>Homesweetrichard</dc:creator>
		<pubDate>Thu, 29 Dec 2011 18:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-96756</guid>
		<description>&lt;pre&gt;

#include 

int variables ()
{
	using namespace std;

	cout &lt;&gt; b;
	
	int e;
	e = b*10;
	
	int l;
	l = e/100;
	
	int a;
	a = e+b;
	
	int d;
	d = l+e;
	
	int s;
	s = 2*(d-a);
	
	int m;
	m = b+l;
	
	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;
	 

	return 0;

}

&lt;pre /&gt;


1&gt;------ Build started: Project: Hell, Configuration: Debug Win32 ------
1&gt;  variables.cpp
1&gt;  LINK : C:\Users\Administrator\Documents\Visual Studio 2010\Projects\Hell\Debug\Hell.exe not found or not built by the last incremental link; performing full link
1&gt;LINK : fatal error LNK1561: entry point must be defined
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Umm... okay, im sure there is a coding problem on my end, but what?</description>
		<content:encoded><![CDATA[<pre>

#include 

int variables ()
{
	using namespace std;

	cout &lt;&gt; b;

	int e;
	e = b*10;

	int l;
	l = e/100;

	int a;
	a = e+b;

	int d;
	d = l+e;

	int s;
	s = 2*(d-a);

	int m;
	m = b+l;

	cout &lt;&lt; b &lt;&lt; e &lt;&lt; l &lt;&lt; a &lt;&lt; d &lt;&lt; s &lt;&lt; m;

	return 0;

}
<pre />

1&gt;------ Build started: Project: Hell, Configuration: Debug Win32 ------
1&gt;  variables.cpp
1&gt;  LINK : C:\Users\Administrator\Documents\Visual Studio 2010\Projects\Hell\Debug\Hell.exe not found or not built by the last incremental link; performing full link
1&gt;LINK : fatal error LNK1561: entry point must be defined
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Umm... okay, im sure there is a coding problem on my end, but what?</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

