<?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.7 &#8212; Forward declarations</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/17-forward-declarations/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/</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: Online Rollenspiele Kostenlos</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-91626</link>
		<dc:creator>Online Rollenspiele Kostenlos</dc:creator>
		<pubDate>Wed, 08 Sep 2010 07:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-91626</guid>
		<description>That was exactly what i needed ! Thank you for your support ! =)</description>
		<content:encoded><![CDATA[<p>That was exactly what i needed ! Thank you for your support ! =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ice</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-91590</link>
		<dc:creator>ice</dc:creator>
		<pubDate>Tue, 07 Sep 2010 21:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-91590</guid>
		<description>I tried to run your program and came up with and error like this
1&gt;------ Build started: Project: 1, Configuration: Debug Win32 ------
1&gt;  1.cpp
1&gt;c:\users\marius\documents\visual studio 2010\projects\1\1\1.cpp(2): fatal error C1083: Cannot open include file: &#039;iostream.h&#039;: No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</description>
		<content:encoded><![CDATA[<p>I tried to run your program and came up with and error like this<br />
1&gt;&#8212;&#8212; Build started: Project: 1, Configuration: Debug Win32 &#8212;&#8212;<br />
1&gt;  1.cpp<br />
1&gt;c:\users\marius\documents\visual studio 2010\projects\1\1\1.cpp(2): fatal error C1083: Cannot open include file: &#8216;iostream.h&#8217;: No such file or directory<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StelStav</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-91283</link>
		<dc:creator>StelStav</dc:creator>
		<pubDate>Thu, 02 Sep 2010 17:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-91283</guid>
		<description>Hi all,

I would like to ask what is the reasoning of c++ creators for forward declaration? Why isn’t the compiler designed in such a manner so as to look for a function definition regardless of it being before or after the actual function calling?
I would imagine that it is enough that the function definition resided in the same scope of the function call.
Would the above (my) logic effect the efficiency of the executable or just the compilation?

Thanks in advance

very nice site btw, good job admins :)</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>I would like to ask what is the reasoning of c++ creators for forward declaration? Why isn’t the compiler designed in such a manner so as to look for a function definition regardless of it being before or after the actual function calling?<br />
I would imagine that it is enough that the function definition resided in the same scope of the function call.<br />
Would the above (my) logic effect the efficiency of the executable or just the compilation?</p>
<p>Thanks in advance</p>
<p>very nice site btw, good job admins :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StelStav</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-91282</link>
		<dc:creator>StelStav</dc:creator>
		<pubDate>Thu, 02 Sep 2010 17:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-91282</guid>
		<description>moved my question at the bottom of the queue</description>
		<content:encoded><![CDATA[<p>moved my question at the bottom of the queue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Auge</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-90698</link>
		<dc:creator>Auge</dc:creator>
		<pubDate>Sun, 22 Aug 2010 16:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-90698</guid>
		<description>Lets have a look at your code:
&lt;pre&gt;
int add(int x, int y);
{
return x + y;
}
&lt;/pre&gt;
The semicolon after the function header must be dropped:
&lt;pre&gt;
int add(int x, int y)
&lt;/pre&gt;
The error message tells you that the compiler doesn&#039;t recognize to which function the part within the curly brackets belongs to.
That&#039;s also because of the semicolon after the function header.</description>
		<content:encoded><![CDATA[<p>Lets have a look at your code:</p>
<pre>
int add(int x, int y);
{
return x + y;
}
</pre>
<p>The semicolon after the function header must be dropped:</p>
<pre>
int add(int x, int y)
</pre>
<p>The error message tells you that the compiler doesn&#8217;t recognize to which function the part within the curly brackets belongs to.<br />
That&#8217;s also because of the semicolon after the function header.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tcp</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-87467</link>
		<dc:creator>tcp</dc:creator>
		<pubDate>Wed, 30 Jun 2010 14:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-87467</guid>
		<description>okay so sometimes when i get to

int add(int x, int y);
{
	return x + y;
}

the little dropdown-menu-checkbox doesn&#039;t appear. why is this? the little alert box to the left of the code is green, so it&#039;s not registering as a problem, but it refuses to run the program unless int add is a dropdown item. (the code is perfect, the only difference between the site&#039;s code and my own is the dropdown box).

the error message:

error C2447: &#039;{&#039; : missing function header (old-style formal list?)</description>
		<content:encoded><![CDATA[<p>okay so sometimes when i get to</p>
<p>int add(int x, int y);<br />
{<br />
	return x + y;<br />
}</p>
<p>the little dropdown-menu-checkbox doesn&#8217;t appear. why is this? the little alert box to the left of the code is green, so it&#8217;s not registering as a problem, but it refuses to run the program unless int add is a dropdown item. (the code is perfect, the only difference between the site&#8217;s code and my own is the dropdown box).</p>
<p>the error message:</p>
<p>error C2447: &#8216;{&#8216; : missing function header (old-style formal list?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C++ Tutorial and Online Ebook</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-87400</link>
		<dc:creator>C++ Tutorial and Online Ebook</dc:creator>
		<pubDate>Wed, 30 Jun 2010 00:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-87400</guid>
		<description>[...] 1.7 Forward declarations [...]</description>
		<content:encoded><![CDATA[<p>[...] 1.7 Forward declarations [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zaman Ali</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-86686</link>
		<dc:creator>Zaman Ali</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-86686</guid>
		<description>Its very great tutorial , it&#039;s helpful and very good. 
thank you for putting together this wonderful lessons.</description>
		<content:encoded><![CDATA[<p>Its very great tutorial , it&#8217;s helpful and very good.<br />
thank you for putting together this wonderful lessons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canon</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-82148</link>
		<dc:creator>Canon</dc:creator>
		<pubDate>Wed, 31 Mar 2010 20:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-82148</guid>
		<description>This is lone of the pernicious effects of affirmative action. In our PC/affirmative effectiveness enlightenment, we nurse to spy the achievements and promotions of minorities as a consequence of affirmative affray policies in lieu of of distinct diligence and talent. This undermines these remarkably achievements.
Another ungovernable here is that it sets human morality at odds with the higher heavenly morality. If the higher decency is common to adjudicator the Mass murder, necessary disease outbreaks, etc, as effects, while forgiving propriety will judge them miasmic, then the &#039;proficient&#039; in each of these moralities are different. Admissible on the higher morality is not what we mean around good.</description>
		<content:encoded><![CDATA[<p>This is lone of the pernicious effects of affirmative action. In our PC/affirmative effectiveness enlightenment, we nurse to spy the achievements and promotions of minorities as a consequence of affirmative affray policies in lieu of of distinct diligence and talent. This undermines these remarkably achievements.<br />
Another ungovernable here is that it sets human morality at odds with the higher heavenly morality. If the higher decency is common to adjudicator the Mass murder, necessary disease outbreaks, etc, as effects, while forgiving propriety will judge them miasmic, then the &#8216;proficient&#8217; in each of these moralities are different. Admissible on the higher morality is not what we mean around good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ireul</title>
		<link>http://www.learncpp.com/cpp-tutorial/17-forward-declarations/comment-page-1/#comment-80357</link>
		<dc:creator>Ireul</dc:creator>
		<pubDate>Fri, 12 Mar 2010 12:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=28#comment-80357</guid>
		<description>Sorry for disrespectful comment, but you miss grade school math classes.

7 + 8 - 3 * 7 = 15 - 21 = -6, the answer given by output is perfectly correct.</description>
		<content:encoded><![CDATA[<p>Sorry for disrespectful comment, but you miss grade school math classes.</p>
<p>7 + 8 &#8211; 3 * 7 = 15 &#8211; 21 = -6, the answer given by output is perfectly correct.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
