<?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"
	>
<channel>
	<title>Comments on: 1.11 &#8212; Comprehensive quiz</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/</link>
	<description></description>
	<pubDate>Thu, 24 Jul 2008 16:23:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Joyel</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-19957</link>
		<dc:creator>Joyel</dc:creator>
		<pubDate>Sat, 28 Jun 2008 05:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-19957</guid>
		<description>This one was very helpful.  Thanks.  Those tutorials give me some hands on experience (I learn a lot faster that way).  Thanks again for the great tutorial.</description>
		<content:encoded><![CDATA[<p>This one was very helpful.  Thanks.  Those tutorials give me some hands on experience (I learn a lot faster that way).  Thanks again for the great tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitul</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-19180</link>
		<dc:creator>Mitul</dc:creator>
		<pubDate>Tue, 17 Jun 2008 06:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-19180</guid>
		<description>

/* Program of add two number like example 1 */

#include &#60;iostream.h&#62;
#include &#60;conio.h&#62;

int ReadNumber(int x,int y)
{
	int z;
	z = x + y;
	return z;
}

void WriteAnswer(int x)
{
	cout &#60;&#60; &#34;\n The Answer is &#34; &#60;&#60; x;
}

void main()
{
	int x,y,z;
	clrscr();
	cout &#60;&#60; &#34;\n Enter the first Number : &#34;;
	cin &#62;&#62; x;
	cout &#60;&#60; &#34; \n Enter the second Number : &#34;;
	cin &#62;&#62; y;
	z = ReadNumber(x,y);
	WriteAnswer(z);
	getch();
}

/*End of Program */

</description>
		<content:encoded><![CDATA[<p>/* Program of add two number like example 1 */</p>
<p>#include &lt;iostream.h&gt;<br />
#include &lt;conio.h&gt;</p>
<p>int ReadNumber(int x,int y)<br />
{<br />
	int z;<br />
	z = x + y;<br />
	return z;<br />
}</p>
<p>void WriteAnswer(int x)<br />
{<br />
	cout &lt;&lt; &quot;\n The Answer is &quot; &lt;&lt; x;<br />
}</p>
<p>void main()<br />
{<br />
	int x,y,z;<br />
	clrscr();<br />
	cout &lt;&lt; &quot;\n Enter the first Number : &quot;;<br />
	cin &gt;&gt; x;<br />
	cout &lt;&lt; &quot; \n Enter the second Number : &quot;;<br />
	cin &gt;&gt; y;<br />
	z = ReadNumber(x,y);<br />
	WriteAnswer(z);<br />
	getch();<br />
}</p>
<p>/*End of Program */</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-17911</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 31 May 2008 00:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-17911</guid>
		<description>Stdafx.h should be used only for stuff that is very unlikely to ever change.  Typically stdafx.h #includes other header files that meets this criteria.</description>
		<content:encoded><![CDATA[<p>Stdafx.h should be used only for stuff that is very unlikely to ever change.  Typically stdafx.h #includes other header files that meets this criteria.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-17839</link>
		<dc:creator>Vikram</dc:creator>
		<pubDate>Fri, 30 May 2008 02:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-17839</guid>
		<description>Very useful!!</description>
		<content:encoded><![CDATA[<p>Very useful!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arocalex</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-16020</link>
		<dc:creator>Arocalex</dc:creator>
		<pubDate>Tue, 13 May 2008 15:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-16020</guid>
		<description>Can I just put what you have in io.h in stdafx.h? Would that not remove some of the difficulty?</description>
		<content:encoded><![CDATA[<p>Can I just put what you have in io.h in stdafx.h? Would that not remove some of the difficulty?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-14380</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 05 May 2008 01:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-14380</guid>
		<description>Good job on chapter 1. I've really been struggling with stuff like pointers and arrays so I'm going through this whole tutorial slowly. Hopefully the advanced stuff will be as good as this. Thanks for the tutorials!</description>
		<content:encoded><![CDATA[<p>Good job on chapter 1. I&#8217;ve really been struggling with stuff like pointers and arrays so I&#8217;m going through this whole tutorial slowly. Hopefully the advanced stuff will be as good as this. Thanks for the tutorials!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-12942</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Thu, 24 Apr 2008 21:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-12942</guid>
		<description>It's okay: problem solved.

#ifdef IO_H should be @define IO_H

Silly me.</description>
		<content:encoded><![CDATA[<p>It&#8217;s okay: problem solved.</p>
<p>#ifdef IO_H should be @define IO_H</p>
<p>Silly me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-12937</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Thu, 24 Apr 2008 20:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-12937</guid>
		<description>I can't get solution 3 to build.



This is my main ccp (test8.cpp):
&lt;pre&gt;// Test8.cpp : Defines the entry point for the console application.


#include "stdafx.h"
#include "io.h"

int main()
{
	int x = ReadNumber();
	int y = ReadNumber();
	WriteAnswer(x+y);
	return 0;
}&lt;/pre&gt;


This is my io.cpp:
&lt;pre&gt;#include "stdafx.h"
#include 

int ReadNumber()
{
	
	using namespace std;
	cout &#60;&#62; x;
	return x;
}

void WriteAnswer(int x)
{
	using namespace std;
	cout &#60;&#60; "The answer is: " &#60;&#60; x &#60;&#60; endl;
}&lt;/pre&gt;


And this is my io.h:
&lt;pre&gt;#ifndef IO_H
#ifdef IO_H

int ReadNumber();
void WriteAnswer(int x);

#endif&lt;/pre&gt;


This is the error I get: 

c:vcpp2008projectstest8test8io.h(8) : fatal error C1070: mismatched #if/#endif pair in file 'c:vcpp2008projectstest8test8io.h'

(I'm putting #include iostream with  at each side or iostream at the top of io.cpp here and there isn't supposed to be space between the &#60;&#60; after the cout in io.cpp here either, but it won't display correctly. Slashes won't show up in the error message either.)</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get solution 3 to build.</p>
<p>This is my main ccp (test8.cpp):</p>
<pre>// Test8.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include "io.h"

int main()
{
	int x = ReadNumber();
	int y = ReadNumber();
	WriteAnswer(x+y);
	return 0;
}</pre>
<p>This is my io.cpp:</p>
<pre>#include "stdafx.h"
#include 

int ReadNumber()
{

	using namespace std;
	cout &lt;&gt; x;
	return x;
}

void WriteAnswer(int x)
{
	using namespace std;
	cout &lt;&lt; "The answer is: " &lt;&lt; x &lt;&lt; endl;
}</pre>
<p>And this is my io.h:</p>
<pre>#ifndef IO_H
#ifdef IO_H

int ReadNumber();
void WriteAnswer(int x);

#endif</pre>
<p>This is the error I get: </p>
<p>c:vcpp2008projectstest8test8io.h(8) : fatal error C1070: mismatched #if/#endif pair in file &#8216;c:vcpp2008projectstest8test8io.h&#8217;</p>
<p>(I&#8217;m putting #include iostream with  at each side or iostream at the top of io.cpp here and there isn&#8217;t supposed to be space between the &lt;&lt; after the cout in io.cpp here either, but it won&#8217;t display correctly. Slashes won&#8217;t show up in the error message either.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 1.10 &#8212; A first look at the preprocessor</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-12626</link>
		<dc:creator>Learn C++ - &#187; 1.10 &#8212; A first look at the preprocessor</dc:creator>
		<pubDate>Wed, 23 Apr 2008 02:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-12626</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 1.9 &#8212; Header files &#124; Home &#124; 1.11 &#8212; Comprehensive quiz &#187;     Sunday, June 3rd, 2007 at 12:57 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 1.9 &#8212; Header files | Home | 1.11 &#8212; Comprehensive quiz &raquo;     Sunday, June 3rd, 2007 at 12:57 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 2.1 &#8212; Basic addressing and variable declaration</title>
		<link>http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz/#comment-12594</link>
		<dc:creator>Learn C++ - &#187; 2.1 &#8212; Basic addressing and variable declaration</dc:creator>
		<pubDate>Wed, 23 Apr 2008 01:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/?p=34#comment-12594</guid>
		<description>[...]  1.11 â€” Comprehensive quiz [...]</description>
		<content:encoded><![CDATA[<p>[...]  1.11 â€” Comprehensive quiz [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
