<?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: 7.12 &#8212; Handling errors (assert, cerr, exit, and exceptions)</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/</link>
	<description></description>
	<pubDate>Wed, 20 Aug 2008 09:36:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Arjun</title>
		<link>http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-18131</link>
		<dc:creator>Arjun</dc:creator>
		<pubDate>Tue, 03 Jun 2008 09:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-18131</guid>
		<description>&lt;pre&gt;char strHello[] = "Hello, world!";   
  
int nIndex;   
do  
{   
    std::cout &#60;&#62; nIndex;   
} while (nIndex = strlen(strHello));   
  
std::cout &#60;&#60; "Letter #" &#60;&#60; nIndex &#60;&#60; " is " &#60;&#60; strHello[nIndex] &#60;&#60; std::endl; &lt;/pre&gt;
 
In this Example, Shouldn't it be 

&lt;pre&gt;while (nIndex &#62; 0 &#124;&#124; nIndex &#60;= strlen(strHello));&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre>char strHello[] = &#8220;Hello, world!&#8221;;   

int nIndex;
do
{
    std::cout &lt;&gt; nIndex;
} while (nIndex = strlen(strHello));   

std::cout &lt;&lt; &#8220;Letter #&#8221; &lt;&lt; nIndex &lt;&lt; &#8221; is &#8221; &lt;&lt; strHello[nIndex] &lt;&lt; std::endl; </pre>
<p>In this Example, Shouldn&#8217;t it be </p>
<pre>while (nIndex &gt; 0 || nIndex &lt;= strlen(strHello));</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 7.11 &#8212; Namespaces</title>
		<link>http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-13497</link>
		<dc:creator>Learn C++ - &#187; 7.11 &#8212; Namespaces</dc:creator>
		<pubDate>Tue, 29 Apr 2008 05:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-13497</guid>
		<description>[...]  7.12 â€” Handling errors (assert, cerr, exit, and exceptions) [...]</description>
		<content:encoded><![CDATA[<p>[...]  7.12 â€” Handling errors (assert, cerr, exit, and exceptions) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-10273</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 24 Mar 2008 17:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-10273</guid>
		<description>Again, very clear and concise.

Two small typos:

"Defensive programming is &lt;b&gt;a&lt;/b&gt; form of program design that..."

"// &lt;b&gt;Delcare&lt;/b&gt; an array of 10 integers"

Thanks!

[ No, thank you! -Alex ]</description>
		<content:encoded><![CDATA[<p>Again, very clear and concise.</p>
<p>Two small typos:</p>
<p>&#8220;Defensive programming is <b>a</b> form of program design that&#8230;&#8221;</p>
<p>&#8220;// <b>Delcare</b> an array of 10 integers&#8221;</p>
<p>Thanks!</p>
<p>[ No, thank you! -Alex ]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-6239</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Fri, 18 Jan 2008 16:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-6239</guid>
		<description>ok</description>
		<content:encoded><![CDATA[<p>ok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; A.4 -- Debugging your program (stepping and breakpoints)</title>
		<link>http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-2886</link>
		<dc:creator>Learn C++ - &#187; A.4 -- Debugging your program (stepping and breakpoints)</dc:creator>
		<pubDate>Fri, 16 Nov 2007 19:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/712-handling-errors-assert-cerr-exit-and-exceptions/#comment-2886</guid>
		<description>[...] is difficult, and there are a lot of ways to make mistakes. As you learned in the section on handling errors, there are two primary types of errors: syntax errors and semantic [...]</description>
		<content:encoded><![CDATA[<p>[...] is difficult, and there are a lot of ways to make mistakes. As you learned in the section on handling errors, there are two primary types of errors: syntax errors and semantic [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
