<?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: 4.1 &#8212; Blocks (compound statements) and local variables</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/</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: posentel</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-96194</link>
		<dc:creator>posentel</dc:creator>
		<pubDate>Tue, 25 Oct 2011 04:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-96194</guid>
		<description>It may be helpful to point out that since a block replaces a single statement (that ends with a semicolon), the block supercedes the use of a semicolon.  No semicolon is necessary to end a block.</description>
		<content:encoded><![CDATA[<p>It may be helpful to point out that since a block replaces a single statement (that ends with a semicolon), the block supercedes the use of a semicolon.  No semicolon is necessary to end a block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 3.X &#8212; Comprehensive Quiz &#171; Learn C++</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-96011</link>
		<dc:creator>3.X &#8212; Comprehensive Quiz &#171; Learn C++</dc:creator>
		<pubDate>Mon, 12 Sep 2011 01:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-96011</guid>
		<description>[...]  4.1 &#8212; Blocks (compound statements) and local variables [...]</description>
		<content:encoded><![CDATA[<p>[...]  4.1 &#8212; Blocks (compound statements) and local variables [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hermie</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-88957</link>
		<dc:creator>Hermie</dc:creator>
		<pubDate>Fri, 23 Jul 2010 10:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-88957</guid>
		<description>Hi give me ang example of javaprogram codes only...................
Thank you for give me........</description>
		<content:encoded><![CDATA[<p>Hi give me ang example of javaprogram codes only&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
Thank you for give me&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-74337</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 17 Dec 2009 00:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-74337</guid>
		<description>Having more review questions and quizes would help me more.  The more I get into these lessons the less I know how to use things in the same program.  More examples or quizes might be worth looking into.  
Thanks, 
Andrew</description>
		<content:encoded><![CDATA[<p>Having more review questions and quizes would help me more.  The more I get into these lessons the less I know how to use things in the same program.  More examples or quizes might be worth looking into.<br />
Thanks,<br />
Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fluke</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-73152</link>
		<dc:creator>Fluke</dc:creator>
		<pubDate>Fri, 27 Nov 2009 15:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-73152</guid>
		<description>Now i see a benefit from declare_variable_when_needed instead of all at the top of the function.
Cheers :)</description>
		<content:encoded><![CDATA[<p>Now i see a benefit from declare_variable_when_needed instead of all at the top of the function.<br />
Cheers :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramakanth</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-63797</link>
		<dc:creator>ramakanth</dc:creator>
		<pubDate>Mon, 06 Jul 2009 07:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-63797</guid>
		<description>The tutorials are truly ememplary.It gets the basics right.
Please let me know if there is a downloadable version(.pdf) of this 
site as it would be quite useful.</description>
		<content:encoded><![CDATA[<p>The tutorials are truly ememplary.It gets the basics right.<br />
Please let me know if there is a downloadable version(.pdf) of this<br />
site as it would be quite useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-27042</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 11 Sep 2008 07:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-27042</guid>
		<description>As you note, the using statement normal variable scoping rules -- if used inside a block, it applies to the block and all subblocks.

Whether you put it in each function or declare it globally so it affects your entire program is really a personal choice.  Doing it globally tends to be more convenient, but also increases the potential for naming collisions.</description>
		<content:encoded><![CDATA[<p>As you note, the using statement normal variable scoping rules &#8212; if used inside a block, it applies to the block and all subblocks.</p>
<p>Whether you put it in each function or declare it globally so it affects your entire program is really a personal choice.  Doing it globally tends to be more convenient, but also increases the potential for naming collisions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davidv</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-26833</link>
		<dc:creator>davidv</dc:creator>
		<pubDate>Mon, 08 Sep 2008 18:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-26833</guid>
		<description>Hi Alex,

Fabulous work, first of all.

I have a question: how does &quot;using namespace std&quot; work with the nesting? It seems that once written in a block, it is valid for the sub-blocks as well. If it is so, wouldn&#039;t it be easier to simply declare it at the beginning rather than several times inside functions?
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Alex,</p>
<p>Fabulous work, first of all.</p>
<p>I have a question: how does &#8220;using namespace std&#8221; work with the nesting? It seems that once written in a block, it is valid for the sub-blocks as well. If it is so, wouldn&#8217;t it be easier to simply declare it at the beginning rather than several times inside functions?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 3.8 &#8212; Bitwise operators</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-12615</link>
		<dc:creator>Learn C++ - &#187; 3.8 &#8212; Bitwise operators</dc:creator>
		<pubDate>Wed, 23 Apr 2008 01:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-12615</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 3.7 &#8212; Converting between binary and decimal &#124; Home &#124; 4.1 &#8212; Blocks (compound statements) and local variables &#187;     Sunday, June 17th, 2007 at 1:12 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 3.7 &#8212; Converting between binary and decimal | Home | 4.1 &#8212; Blocks (compound statements) and local variables &raquo;     Sunday, June 17th, 2007 at 1:12 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/comment-page-1/#comment-11185</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 08 Apr 2008 03:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/41-blocks-compound-statements-and-local-variables/#comment-11185</guid>
		<description>Hmmm, I had installed a plugin that let users do that, but I think it may have stopped working when I upgraded to a newer version of Wordpress.  I&#039;ll have to see if there&#039;s an update.  However, I&#039;m right in the middle of a relocation, so it&#039;ll probably take me a while to get to it.  My apologies.</description>
		<content:encoded><![CDATA[<p>Hmmm, I had installed a plugin that let users do that, but I think it may have stopped working when I upgraded to a newer version of WordPress.  I&#8217;ll have to see if there&#8217;s an update.  However, I&#8217;m right in the middle of a relocation, so it&#8217;ll probably take me a while to get to it.  My apologies.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

