<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Learn C++</title>
	
	<link>http://www.learncpp.com</link>
	<description />
	<lastBuildDate>Wed, 09 May 2012 13:09:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/LearnCppComments" /><feedburner:info uri="learncppcomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on 15.2 — Basic exception handling by hubalu</title>
		<link>http://www.learncpp.com/cpp-tutorial/152-basic-exception-handling/comment-page-1/#comment-97344</link>
		<dc:creator>hubalu</dc:creator>
		<pubDate>Wed, 09 May 2012 13:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=213#comment-97344</guid>
		<description>"see if any handlers &lt;b&gt;matche(s)&lt;/b&gt;."</description>
		<content:encoded><![CDATA[<p>&#8220;see if any handlers <b>matche(s)</b>.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 1.4 — A first look at functions by mukulgarg_jec</title>
		<link>http://www.learncpp.com/cpp-tutorial/14-a-first-look-at-functions/comment-page-3/#comment-97340</link>
		<dc:creator>mukulgarg_jec</dc:creator>
		<pubDate>Tue, 08 May 2012 11:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=23#comment-97340</guid>
		<description>You do not declare the variable x in main function.

#include “stdafx.h”
#include
using namespace std;

int doubleNumber(int x)
{
return 2 * x;
}
int main()
{
int x;
cout &lt;&lt; "Input a number to be doubled:"  x;
cout &lt;&lt; "The number: " &lt;&lt; x &lt;&lt; " has been entered" &lt;&lt; endl;
cout &lt;&lt; "Your number has been doubled to: " &lt;&lt; doubleNumber(x) &lt;&lt; endl;
return 0;
}</description>
		<content:encoded><![CDATA[<p>You do not declare the variable x in main function.</p>
<p>#include “stdafx.h”<br />
#include<br />
using namespace std;</p>
<p>int doubleNumber(int x)<br />
{<br />
return 2 * x;<br />
}<br />
int main()<br />
{<br />
int x;<br />
cout &lt;&lt; &quot;Input a number to be doubled:&quot;  x;<br />
cout &lt;&lt; &quot;The number: &quot; &lt;&lt; x &lt;&lt; &quot; has been entered&quot; &lt;&lt; endl;<br />
cout &lt;&lt; &quot;Your number has been doubled to: &quot; &lt;&lt; doubleNumber(x) &lt;&lt; endl;<br />
return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 1.4 — A first look at functions by mukulgarg_jec</title>
		<link>http://www.learncpp.com/cpp-tutorial/14-a-first-look-at-functions/comment-page-3/#comment-97339</link>
		<dc:creator>mukulgarg_jec</dc:creator>
		<pubDate>Tue, 08 May 2012 11:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=23#comment-97339</guid>
		<description>You cant declare the variable x in main function.

#include “stdafx.h”
#include
using namespace std;

int doubleNumber(int x)
{
return 2 * x;
}
int main()
{
int x;
cout &lt;&lt; "Input a number to be doubled:"  x;
cout &lt;&lt; "The number: " &lt;&lt; x &lt;&lt; " has been entered" &lt;&lt; endl;
cout &lt;&lt; "Your number has been doubled to: " &lt;&lt; doubleNumber(x) &lt;&lt; endl;
return 0;
}</description>
		<content:encoded><![CDATA[<p>You cant declare the variable x in main function.</p>
<p>#include “stdafx.h”<br />
#include<br />
using namespace std;</p>
<p>int doubleNumber(int x)<br />
{<br />
return 2 * x;<br />
}<br />
int main()<br />
{<br />
int x;<br />
cout &lt;&lt; &quot;Input a number to be doubled:&quot;  x;<br />
cout &lt;&lt; &quot;The number: &quot; &lt;&lt; x &lt;&lt; &quot; has been entered&quot; &lt;&lt; endl;<br />
cout &lt;&lt; &quot;Your number has been doubled to: &quot; &lt;&lt; doubleNumber(x) &lt;&lt; endl;<br />
return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 1.3 — A first look at variables (and cin) by mukulgarg_jec</title>
		<link>http://www.learncpp.com/cpp-tutorial/13-a-first-look-at-variables/comment-page-2/#comment-97338</link>
		<dc:creator>mukulgarg_jec</dc:creator>
		<pubDate>Tue, 08 May 2012 09:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?p=22#comment-97338</guid>
		<description>you are missing main() function. Updated code is

#include "stdafx.h"
#include
int main()
{
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;

}</description>
		<content:encoded><![CDATA[<p>you are missing main() function. Updated code is</p>
<p>#include &#8220;stdafx.h&#8221;<br />
#include<br />
int main()<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>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 14.3 — Template classes by hubalu</title>
		<link>http://www.learncpp.com/cpp-tutorial/143-template-classes/comment-page-1/#comment-97337</link>
		<dc:creator>hubalu</dc:creator>
		<pubDate>Tue, 08 May 2012 07:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=206#comment-97337</guid>
		<description>the &lt;b&gt;compile(r)&lt;/b&gt; won’t even compile it.</description>
		<content:encoded><![CDATA[<p>the <b>compile(r)</b> won’t even compile it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The C++ Tutorial by Tutorials For Programming/Scripting</title>
		<link>http://www.learncpp.com/comment-page-1/#comment-97332</link>
		<dc:creator>Tutorials For Programming/Scripting</dc:creator>
		<pubDate>Sun, 06 May 2012 13:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://learncpp.com/?page_id=3#comment-97332</guid>
		<description>[...] W3Schools Online Web Tutorials CSS Tutorial: Free    C++  cplusplus.com - The C++ Resources Network Learn C++    Javascript  http://www.newbie.or...cript/index.htm Beginning JavaScript Tutorials [...]</description>
		<content:encoded><![CDATA[<p>[...] W3Schools Online Web Tutorials CSS Tutorial: Free    C++  cplusplus.com &#8211; The C++ Resources Network Learn C++    Javascript  <a href="http://www.newbie.or...cript/index.htm" rel="nofollow">http://www.newbie.or&#8230;cript/index.htm</a> Beginning JavaScript Tutorials [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3.1 — Precedence and associativity by Sergey</title>
		<link>http://www.learncpp.com/cpp-tutorial/31-precedence-and-associativity/comment-page-1/#comment-97330</link>
		<dc:creator>Sergey</dc:creator>
		<pubDate>Sun, 06 May 2012 10:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/31-precedence-and-associativity/#comment-97330</guid>
		<description>Chapters from this tutorial are already blatantly copied by someone without even mentioning the source. Like here &lt;a href="http://learncppprogramming.wordpress.com/2012/01/13/precedence-and-associativity/" rel="nofollow"&gt;Precedence and associativity[&lt;a href="http://learncppprogramming.wordpress.com/2012/01/13/precedence-and-associativity/" title="New Window" rel="nofollow"&gt;^&lt;/a&gt;]. Note the site's name too - "Learn C++ Programming" and try to find at least one his/her own word.</description>
		<content:encoded><![CDATA[<p>Chapters from this tutorial are already blatantly copied by someone without even mentioning the source. Like here <a href="http://learncppprogramming.wordpress.com/2012/01/13/precedence-and-associativity/" rel="nofollow">Precedence and associativity[</a><a href="http://learncppprogramming.wordpress.com/2012/01/13/precedence-and-associativity/" title="New Window" rel="nofollow">^</a>]. Note the site&#8217;s name too &#8211; &#8220;Learn C++ Programming&#8221; and try to find at least one his/her own word.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 14.3 — Template classes by Sergey</title>
		<link>http://www.learncpp.com/cpp-tutorial/143-template-classes/comment-page-1/#comment-97319</link>
		<dc:creator>Sergey</dc:creator>
		<pubDate>Thu, 03 May 2012 15:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=206#comment-97319</guid>
		<description>Actually, the program will most likely pass the compilation, but linker will report an error implying there is no function definition(s).</description>
		<content:encoded><![CDATA[<p>Actually, the program will most likely pass the compilation, but linker will report an error implying there is no function definition(s).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 14.3 — Template classes by Sergey</title>
		<link>http://www.learncpp.com/cpp-tutorial/143-template-classes/comment-page-1/#comment-97318</link>
		<dc:creator>Sergey</dc:creator>
		<pubDate>Thu, 03 May 2012 13:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=206#comment-97318</guid>
		<description>&lt;i&gt;"Some older compilers (eg. Visual Studio 6) have a bug where the definition of template class functions must be put in the same file as the template class is defined in. Thus, if the template class were defined in X.h, the function definitions would have to also go in X.h (not X.cpp). This issue should be fixed in most/all modern compilers."&lt;/i&gt;

No.It is still not implemented in most of compilers and you have to use &lt;i&gt;inclusion model&lt;/i&gt;. See discussions on &lt;i&gt;Stackoverflow.com&lt;i&gt;:&lt;a href="http://stackoverflow.com/questions/3749099/why-should-the-implementation-and-the-declaration-of-a-template-class-be-in-the" rel="nofollow"&gt;Why should the implementation and the declaration of a template class be in the same header file?[&lt;a href="http://stackoverflow.com/questions/3749099/why-should-the-implementation-and-the-declaration-of-a-template-class-be-in-the" title="New Window" rel="nofollow"&gt;^&lt;/a&gt;]</description>
		<content:encoded><![CDATA[<p><i>&#8220;Some older compilers (eg. Visual Studio 6) have a bug where the definition of template class functions must be put in the same file as the template class is defined in. Thus, if the template class were defined in X.h, the function definitions would have to also go in X.h (not X.cpp). This issue should be fixed in most/all modern compilers.&#8221;</i></p>
<p>No.It is still not implemented in most of compilers and you have to use <i>inclusion model</i>. See discussions on <i>Stackoverflow.com</i><i>:<a href="http://stackoverflow.com/questions/3749099/why-should-the-implementation-and-the-declaration-of-a-template-class-be-in-the" rel="nofollow">Why should the implementation and the declaration of a template class be in the same header file?[</a><a href="http://stackoverflow.com/questions/3749099/why-should-the-implementation-and-the-declaration-of-a-template-class-be-in-the" title="New Window" rel="nofollow">^</a>]</i></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 1.4 — A first look at functions by Zhadeglazed</title>
		<link>http://www.learncpp.com/cpp-tutorial/14-a-first-look-at-functions/comment-page-3/#comment-97316</link>
		<dc:creator>Zhadeglazed</dc:creator>
		<pubDate>Thu, 03 May 2012 07:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=23#comment-97316</guid>
		<description>i guess it is because not all function need those library, and it could save more memory.</description>
		<content:encoded><![CDATA[<p>i guess it is because not all function need those library, and it could save more memory.</p>
]]></content:encoded>
	</item>
</channel>
</rss><!-- Dynamic page generated in 0.402 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-05-09 05:28:21 --><!-- Compression = gzip -->

