<?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>Thu, 09 Sep 2010 12:59:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ramesh</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-91554</link>
		<dc:creator>ramesh</dc:creator>
		<pubDate>Tue, 07 Sep 2010 09:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-91554</guid>
		<description>plz send to me cpp software download link</description>
		<content:encoded><![CDATA[<p>plz send to me cpp software download link</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UnderMotion</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-90801</link>
		<dc:creator>UnderMotion</dc:creator>
		<pubDate>Tue, 24 Aug 2010 14:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-90801</guid>
		<description>&lt;pre&gt; using namespace std; &lt;/pre&gt; should be in between the brackets in main()
Try it out ;)</description>
		<content:encoded><![CDATA[<pre> using namespace std; </pre>
<p> should be in between the brackets in main()<br />
Try it out ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Sinclair</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-90401</link>
		<dc:creator>Adam Sinclair</dc:creator>
		<pubDate>Mon, 16 Aug 2010 16:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-90401</guid>
		<description>You forgot the 

&lt;pre&gt;int main()&lt;/pre&gt;

You just have:

&lt;pre&gt;main()&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>You forgot the </p>
<pre>int main()</pre>
<p>You just have:</p>
<pre>main()</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Sinclair</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-90400</link>
		<dc:creator>Adam Sinclair</dc:creator>
		<pubDate>Mon, 16 Aug 2010 16:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-90400</guid>
		<description>&lt;pre&gt;#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;

using namespace std;

int main()
{
int x;
cout &lt;&lt; x &lt;&lt; endl;
}&lt;/pre&gt;

When I run this with Visual C++ 2008, the console opens up and it doesn&#039;t say anything.  Only says:

&lt;b&gt;Press Enter to continue...&lt;/b&gt;</description>
		<content:encoded><![CDATA[<pre>#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;

using namespace std;

int main()
{
int x;
cout &lt;&lt; x &lt;&lt; endl;
}</pre>
<p>When I run this with Visual C++ 2008, the console opens up and it doesn&#8217;t say anything.  Only says:</p>
<p><b>Press Enter to continue&#8230;</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-89214</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 28 Jul 2010 18:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-89214</guid>
		<description>it&#039;s the cout and cin code that&#039;s having problems everything else works</description>
		<content:encoded><![CDATA[<p>it&#8217;s the cout and cin code that&#8217;s having problems everything else works</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-89213</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 28 Jul 2010 17:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-89213</guid>
		<description>it keeps saying this is an error cout &lt;&lt; &quot;You entered &quot; &lt;&lt; x &lt;&lt; endl; on visual studios 2008 any advice</description>
		<content:encoded><![CDATA[<p>it keeps saying this is an error cout &lt;&lt; &quot;You entered &quot; &lt;&lt; x &lt;&lt; endl; on visual studios 2008 any advice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-89212</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 28 Jul 2010 17:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-89212</guid>
		<description>the code before the quiz code wont work for me , I have visual studios 2008 it keeps saying I have four errors can you help me</description>
		<content:encoded><![CDATA[<p>the code before the quiz code wont work for me , I have visual studios 2008 it keeps saying I have four errors can you help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sega</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-88457</link>
		<dc:creator>sega</dc:creator>
		<pubDate>Thu, 15 Jul 2010 04:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-88457</guid>
		<description>When assigning a number to &quot;x&quot; I can&#039;t assign the number &quot;9999999999&quot; to it. I figure that it is too large of a number. Is there a way to get around this?</description>
		<content:encoded><![CDATA[<p>When assigning a number to &#8220;x&#8221; I can&#8217;t assign the number &#8220;9999999999&#8243; to it. I figure that it is too large of a number. Is there a way to get around this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Solomon Homicz</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-85129</link>
		<dc:creator>Solomon Homicz</dc:creator>
		<pubDate>Fri, 21 May 2010 17:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-85129</guid>
		<description>I&#039;ve got a problem nobody else seems to have. I&#039;m following this tutorial with both an IDE and a text editor/command terminal. I&#039;m running Ubuntu 10.04 with Qt Creator for an IDE, and gedit for an editor. 
When I compile the gedit version of the program manually using &quot;g++ -o first first_C_prog.cpp&quot; it runs and works just fine.
When I build essentially the same code in the IDE it builds fine and runs but when I put in a number and hit enter it just goes to a new line. It doesn&#039;t display anything back to the screen and keeps running, I have to kill it manually.
Here&#039;s the code, the only difference is in the manually compiled version I remove the #include Qtcore (seems like the same thing as stdafx.h).

&lt;pre&gt; 
#include &lt;QtCore/QCoreApplication&gt;
#include &lt;iostream&gt;

int main ()
{
        using namespace std;
        cout &lt;&lt; &quot;Hello World!&quot; &lt;&lt; endl;
        int x = 0;
        cout &lt;&lt; &quot;Enter a number: &quot;;
        cin &gt;&gt; x;
        cout &lt;&lt; &quot;Your number is: &quot; &lt;&lt; x &lt;&lt; endl;
        return 0;
}
&lt;!--formatted--&gt;&lt;/pre&gt;

I&#039;m going to dig into the IDE help next, and see if I can figure it out. I&#039;m an engineering student and have been programming extensively in Fortran, so an editor and terminal is just fine by me, but I think an IDE is going to be essential if I want to make a jump to GUI applications.
The professors say &quot;if you can program in Fortran you can program in anything&quot;, and it seems like C++ is the backbone of just about everything. Most people don&#039;t care about things like Romberg integration or finite difference in a 3d matrix they just want a pretty window on their computer screen that gives them an answer. So, I&#039;m off to learn C++ and this is the best tutorial I&#039;ve found, thanx Alex.
Anybody have suggestions on how to make this IDE behave?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got a problem nobody else seems to have. I&#8217;m following this tutorial with both an IDE and a text editor/command terminal. I&#8217;m running Ubuntu 10.04 with Qt Creator for an IDE, and gedit for an editor.<br />
When I compile the gedit version of the program manually using &#8220;g++ -o first first_C_prog.cpp&#8221; it runs and works just fine.<br />
When I build essentially the same code in the IDE it builds fine and runs but when I put in a number and hit enter it just goes to a new line. It doesn&#8217;t display anything back to the screen and keeps running, I have to kill it manually.<br />
Here&#8217;s the code, the only difference is in the manually compiled version I remove the #include Qtcore (seems like the same thing as stdafx.h).</p>
<pre>
#include &lt;QtCore/QCoreApplication&gt;
#include &lt;iostream&gt;

int main ()
{
        using namespace std;
        cout &lt;&lt; &quot;Hello World!&quot; &lt;&lt; endl;
        int x = 0;
        cout &lt;&lt; &quot;Enter a number: &quot;;
        cin &gt;&gt; x;
        cout &lt;&lt; &quot;Your number is: &quot; &lt;&lt; x &lt;&lt; endl;
        return 0;
}
<!--formatted--></pre>
<p>I&#8217;m going to dig into the IDE help next, and see if I can figure it out. I&#8217;m an engineering student and have been programming extensively in Fortran, so an editor and terminal is just fine by me, but I think an IDE is going to be essential if I want to make a jump to GUI applications.<br />
The professors say &#8220;if you can program in Fortran you can program in anything&#8221;, and it seems like C++ is the backbone of just about everything. Most people don&#8217;t care about things like Romberg integration or finite difference in a 3d matrix they just want a pretty window on their computer screen that gives them an answer. So, I&#8217;m off to learn C++ and this is the best tutorial I&#8217;ve found, thanx Alex.<br />
Anybody have suggestions on how to make this IDE behave?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-1/#comment-83443</link>
		<dc:creator>Kurt</dc:creator>
		<pubDate>Fri, 23 Apr 2010 11:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-83443</guid>
		<description>#include &quot;stdafx.h&quot; // Uncomment if Visual Studio user
#include 
 
int main()
{
    using namespace std;    // gives us access to cout and endl
    int x;                  // declare an integer variable named x

    // print the value of x to the screen (dangerous, because x is uninitialized)
    cout &lt;&lt; x &lt;&lt; endl;
}

This code of yours, which is supposedly to give an output of &quot;8589934960&quot; also worked on mine. I am using Visual Studio 2008 on a Windows 7 OS.

Thanks man!</description>
		<content:encoded><![CDATA[<p>#include &#8220;stdafx.h&#8221; // Uncomment if Visual Studio user<br />
#include </p>
<p>int main()<br />
{<br />
    using namespace std;    // gives us access to cout and endl<br />
    int x;                  // declare an integer variable named x</p>
<p>    // print the value of x to the screen (dangerous, because x is uninitialized)<br />
    cout &lt;&lt; x &lt;&lt; endl;<br />
}</p>
<p>This code of yours, which is supposedly to give an output of &#8220;8589934960&#8243; also worked on mine. I am using Visual Studio 2008 on a Windows 7 OS.</p>
<p>Thanks man!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
