<?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: 13.1 &#8212; Input and output (I/O) streams</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/</link>
	<description></description>
	<pubDate>Thu, 24 Jul 2008 16:28:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Giorgos</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-20132</link>
		<dc:creator>Giorgos</dc:creator>
		<pubDate>Tue, 01 Jul 2008 02:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-20132</guid>
		<description>you got a mistake here! x is not mentioned

#include &#60;iostream&#62;

int main()
{
    using namespace std;
    cout &#60;&#60; &#34;Enter your age: &#34; &#60;&#60; endl;
	
    int nAge;
    cin &#62;&#62; nAge;
	
    if (nAge &#60;= 0)
    {
        cerr &#60;&#60; &#34;Oops, you entered an invalid age!&#34; &#60;&#60; endl;
        exit(1);
    }
	
    cout &#60;&#60; &#34;You entered &#34; &#60;&#60; nAge &#60;&#60; &#34; years old&#34; &#60;&#60; endl;
	
    return 0;
}
&lt;!--formatted--&gt;

[ Fixed.  -Alex ]</description>
		<content:encoded><![CDATA[<p>you got a mistake here! x is not mentioned</p>
<p>#include &lt;iostream&gt;</p>
<p>int main()<br />
{<br />
    using namespace std;<br />
    cout &lt;&lt; &quot;Enter your age: &quot; &lt;&lt; endl;</p>
<p>    int nAge;<br />
    cin &gt;&gt; nAge;</p>
<p>    if (nAge &lt;= 0)<br />
    {<br />
        cerr &lt;&lt; &quot;Oops, you entered an invalid age!&quot; &lt;&lt; endl;<br />
        exit(1);<br />
    }</p>
<p>    cout &lt;&lt; &quot;You entered &quot; &lt;&lt; nAge &lt;&lt; &quot; years old&quot; &lt;&lt; endl;</p>
<p>    return 0;<br />
}<br />
<!--formatted--></p>
<p>[ Fixed.  -Alex ]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 13.2 &#8212; Input with istream</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-14436</link>
		<dc:creator>Learn C++ - &#187; 13.2 &#8212; Input with istream</dc:creator>
		<pubDate>Mon, 05 May 2008 02:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-14436</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 13.1 &#8212; Input and output (I/O) streams &#124; Home &#124; 13.3 &#8212; Output with ostream and ios &#187;     Tuesday, March 4th, 2008 at 4:09 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 13.1 &#8212; Input and output (I/O) streams | Home | 13.3 &#8212; Output with ostream and ios &raquo;     Tuesday, March 4th, 2008 at 4:09 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 12.6 &#8212; Pure virtual functions, abstract base classes, and interface classes</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-14432</link>
		<dc:creator>Learn C++ - &#187; 12.6 &#8212; Pure virtual functions, abstract base classes, and interface classes</dc:creator>
		<pubDate>Mon, 05 May 2008 02:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-14432</guid>
		<description>[...]  13.1 â€” Input and output (I/O) streams [...]</description>
		<content:encoded><![CDATA[<p>[...]  13.1 â€” Input and output (I/O) streams [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 13.3 -- Output with ostream and ios</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-9504</link>
		<dc:creator>Learn C++ - &#187; 13.3 -- Output with ostream and ios</dc:creator>
		<pubDate>Wed, 12 Mar 2008 23:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-9504</guid>
		<description>[...] 13.1 &#8212; Input and output (I/O) streams Category Indexes [...]</description>
		<content:encoded><![CDATA[<p>[...] 13.1 &#8212; Input and output (I/O) streams Category Indexes [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivailosp</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-8865</link>
		<dc:creator>ivailosp</dc:creator>
		<pubDate>Tue, 04 Mar 2008 04:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-8865</guid>
		<description>simple program using stringstream
&lt;pre&gt;
#include &lt;iostream&gt;
#include &lt;sstream&gt;
using namespace std;

int sexy(const char* a, const char* b) {
	stringstream tmp;
	tmp &lt;&lt; a;
	int tmp1;
	tmp &gt;&gt; tmp1;
	tmp.clear();
	tmp &lt;&lt; b;
	int tmp2;
	tmp &gt;&gt; tmp2;
	return tmp1+tmp2;
}

int main() {
	char* string_one = "2123";
	char* string_two = "234";
	cout &lt;&lt; sexy(string_one, string_two);
	return 0;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>simple program using stringstream</p>
<pre>
#include <iostream>
#include <sstream>
using namespace std;

int sexy(const char* a, const char* b) {
	stringstream tmp;
	tmp < < a;
	int tmp1;
	tmp >> tmp1;
	tmp.clear();
	tmp < < b;
	int tmp2;
	tmp >> tmp2;
	return tmp1+tmp2;
}

int main() {
	char* string_one = &#8220;2123&#8243;;
	char* string_two = &#8220;234&#8243;;
	cout < < sexy(string_one, string_two);
	return 0;
}
</pre>
<p></sstream></iostream></pre>
]]></content:encoded>
	</item>
</channel>
</rss>
