<?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: 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>
	<lastBuildDate>Tue, 07 Feb 2012 12:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Nick Xu</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-95480</link>
		<dc:creator>Nick Xu</dc:creator>
		<pubDate>Sat, 21 May 2011 04:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-95480</guid>
		<description>//run correctly
#include 
using namespace std;
int main()
{
  int a,b,c;
  do{
      printf(&quot;a,b,c:\n&quot;);
      scanf(&quot;%d,%d,%d&quot;,&amp;a,&amp;b,&amp;c);
  }while(!(a+b&gt;c &amp;&amp; a+c&gt;b &amp;&amp; c+b&gt;a));
  printf(&quot;Correct!A valid traingle.\n&quot;);
  return 0;
}</description>
		<content:encoded><![CDATA[<p>//run correctly<br />
#include<br />
using namespace std;<br />
int main()<br />
{<br />
  int a,b,c;<br />
  do{<br />
      printf(&#8220;a,b,c:\n&#8221;);<br />
      scanf(&#8220;%d,%d,%d&#8221;,&amp;a,&amp;b,&amp;c);<br />
  }while(!(a+b&gt;c &amp;&amp; a+c&gt;b &amp;&amp; c+b&gt;a));<br />
  printf(&#8220;Correct!A valid traingle.\n&#8221;);<br />
  return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Xu</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-95479</link>
		<dc:creator>Nick Xu</dc:creator>
		<pubDate>Sat, 21 May 2011 04:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-95479</guid>
		<description>OK,do it like this:

//C style without C++ class,under VC++6.0
#include 
using namespace std;
int main()
{
  int a,b,c; 
  do{
      printf(&quot;a,b,c:\n&quot;);
      scanf(&quot;%d,%d,%d&quot;,&amp;a,&amp;b,&amp;c);
    }while(!(a+b&gt;c &amp;&amp; a+c&gt;b &amp;&amp; c+b&gt;a));
  printf(&quot;Correct!A valid traingle.\n&quot;);
  return 0;
}</description>
		<content:encoded><![CDATA[<p>OK,do it like this:</p>
<p>//C style without C++ class,under VC++6.0<br />
#include<br />
using namespace std;<br />
int main()<br />
{<br />
  int a,b,c;<br />
  do{<br />
      printf(&#8220;a,b,c:\n&#8221;);<br />
      scanf(&#8220;%d,%d,%d&#8221;,&amp;a,&amp;b,&amp;c);<br />
    }while(!(a+b&gt;c &amp;&amp; a+c&gt;b &amp;&amp; c+b&gt;a));<br />
  printf(&#8220;Correct!A valid traingle.\n&#8221;);<br />
  return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sloooh</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-95440</link>
		<dc:creator>sloooh</dc:creator>
		<pubDate>Wed, 11 May 2011 16:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-95440</guid>
		<description>Input three positive integers representing the sides of a traingle and determine whether they form a valid traingle. Hint:n a traingle the sum of any two sides must always be greater than the side.


how i can make programme for this by c++ way???</description>
		<content:encoded><![CDATA[<p>Input three positive integers representing the sides of a traingle and determine whether they form a valid traingle. Hint:n a traingle the sum of any two sides must always be greater than the side.</p>
<p>how i can make programme for this by c++ way???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sloooh</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-95439</link>
		<dc:creator>sloooh</dc:creator>
		<pubDate>Wed, 11 May 2011 16:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-95439</guid>
		<description>i have qustion , any one can help me???</description>
		<content:encoded><![CDATA[<p>i have qustion , any one can help me???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saini</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-91143</link>
		<dc:creator>saini</dc:creator>
		<pubDate>Tue, 31 Aug 2010 05:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-91143</guid>
		<description>&lt;pre&gt; what are buffered and unbuffered errors ?
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre> what are buffered and unbuffered errors ?
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-59884</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 03 May 2009 15:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-59884</guid>
		<description>In your second line in after Streams, you have &quot;it&#039;s&quot;

everyone knows possessive pronouns cannot have an apostrophe!</description>
		<content:encoded><![CDATA[<p>In your second line in after Streams, you have &#8220;it&#8217;s&#8221;</p>
<p>everyone knows possessive pronouns cannot have an apostrophe!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-59733</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 02 May 2009 04:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-59733</guid>
		<description>There&#039;s actually very little difference between them.  However, it is possible to redirect one or more of the channels to file (or printer, or network, or elsewhere).  That way, you can have normal output go to one place (eg. a file) and have any errors go to another place (eg. the screen).</description>
		<content:encoded><![CDATA[<p>There&#8217;s actually very little difference between them.  However, it is possible to redirect one or more of the channels to file (or printer, or network, or elsewhere).  That way, you can have normal output go to one place (eg. a file) and have any errors go to another place (eg. the screen).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhisek</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-52167</link>
		<dc:creator>Abhisek</dc:creator>
		<pubDate>Sat, 21 Mar 2009 19:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-52167</guid>
		<description>Q: What is the difference between the outputs of &quot;cout&quot;, &quot;cerr&quot; &amp; &quot;clog&quot; ?
NOTE: Both of them gives exactly the same output to the screen.
Q: Does &quot;cerr&quot; has any more inner workings than printing &quot;Oops, you entered an invalid age!&quot; to the screen?

&lt;pre&gt;
cout &lt;&lt; &quot;Oops, you entered an invalid age!&quot; &lt;&lt; endl;
&lt;/pre&gt;

and 

&lt;pre&gt;
cerr &lt;&lt; &quot;Oops, you entered an invalid age!&quot; &lt;&lt; endl;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Q: What is the difference between the outputs of &#8220;cout&#8221;, &#8220;cerr&#8221; &amp; &#8220;clog&#8221; ?<br />
NOTE: Both of them gives exactly the same output to the screen.<br />
Q: Does &#8220;cerr&#8221; has any more inner workings than printing &#8220;Oops, you entered an invalid age!&#8221; to the screen?</p>
<pre>
cout &lt;&lt; &quot;Oops, you entered an invalid age!&quot; &lt;&lt; endl;
</pre>
<p>and </p>
<pre>
cerr &lt;&lt; &quot;Oops, you entered an invalid age!&quot; &lt;&lt; endl;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kavitha</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-38697</link>
		<dc:creator>Kavitha</dc:creator>
		<pubDate>Thu, 22 Jan 2009 15:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-38697</guid>
		<description>cout — an ostream_withassign class tied to the standard input 

should read as

cout — an ostream_withassign object tied to the standard output

[ You are correct.  Thanks for pointing out the mistake.  -Alex ]</description>
		<content:encoded><![CDATA[<p>cout — an ostream_withassign class tied to the standard input </p>
<p>should read as</p>
<p>cout — an ostream_withassign object tied to the standard output</p>
<p>[ You are correct.  Thanks for pointing out the mistake.  -Alex ]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rohan</title>
		<link>http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/comment-page-1/#comment-27534</link>
		<dc:creator>rohan</dc:creator>
		<pubDate>Tue, 16 Sep 2008 13:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/131-input-and-output-io-streams/#comment-27534</guid>
		<description>Abstractly, a stream can .... infinite length that &quot;us&quot; used as a buffer 
===&gt;
Abstractly, a stream can .... infinite length that &quot;is&quot; used as a buffer

[ Fixed.  Thanks!  -Alex]</description>
		<content:encoded><![CDATA[<p>Abstractly, a stream can &#8230;. infinite length that &#8220;us&#8221; used as a buffer<br />
===&gt;<br />
Abstractly, a stream can &#8230;. infinite length that &#8220;is&#8221; used as a buffer</p>
<p>[ Fixed.  Thanks!  -Alex]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

