<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Worth Living &#187; 関数と変数のスコープ</title>
	<atom:link href="https://worthliv.com/category/cpp/cpp-scope/feed" rel="self" type="application/rss+xml" />
	<link>https://worthliv.com</link>
	<description>楽しく幸せに人生を送るためにはどうすれば良いのか？人生の要素をお金、仕事、勉強、プライベート、健康、心の6要素に分類して考察しています。プログラミング入門に関する記事も掲載。</description>
	<lastBuildDate>Wed, 09 Mar 2016 04:20:46 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/category/cpp/cpp-scope/feed" />
	<item>
		<title>再帰関数</title>
		<link>https://worthliv.com/cpp_post_21.html</link>
		<comments>https://worthliv.com/cpp_post_21.html#comments</comments>
		<pubDate>Tue, 04 Jun 2013 10:40:15 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1330</guid>
		<description><![CDATA[再帰的な動作を期待する場合には、再帰関数を定義する必要があります。 再帰とは、関数が関数自身を呼び出すことです。 ですので、再帰関数は、ループすることになりますので、以下の2つのルールが必要とされています。 スポンサーリ [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_21.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_21.html" />
	</item>
		<item>
		<title>関数の引数型／値呼び出し（値渡し）・参照呼出し（参照渡し）・配列</title>
		<link>https://worthliv.com/cpp_post_20.html</link>
		<comments>https://worthliv.com/cpp_post_20.html#comments</comments>
		<pubDate>Tue, 04 Jun 2013 10:26:38 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1329</guid>
		<description><![CDATA[関数に渡す引数の型をまとめます。 大きく分類すると、関数の引数に渡せるのは、値、参照、ポインタ（後述）となります。 スポンサーリンク function(int var) 値呼び出し（値渡し）。 関数には値が渡される。 関 [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_20.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_20.html" />
	</item>
		<item>
		<title>インライン関数・inline</title>
		<link>https://worthliv.com/cpp_inline.html</link>
		<comments>https://worthliv.com/cpp_inline.html#comments</comments>
		<pubDate>Tue, 04 Jun 2013 09:49:02 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1328</guid>
		<description><![CDATA[関数をインライン関数として宣言すると、オーバーヘッドを排除できます。 inlineキーワードを使うと、C++コンパイラに、関数呼び出しを生成するよりも、関数本文をメインのコードストリームの中に入れるように知らせます。 こ [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_inline.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_inline.html" />
	</item>
		<item>
		<title>デフォルト引数・定義された引数を使用しない関数</title>
		<link>https://worthliv.com/cpp_post_19.html</link>
		<comments>https://worthliv.com/cpp_post_19.html#comments</comments>
		<pubDate>Tue, 04 Jun 2013 09:06:23 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1327</guid>
		<description><![CDATA[引数のデフォルト値 スポンサーリンク C++では、デフォルト引数を指定できます。 void somefunc(const int width, const int height, float scale = 1.0) { [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_19.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_19.html" />
	</item>
		<item>
		<title>関数のオーバーロード</title>
		<link>https://worthliv.com/cpp_post_18.html</link>
		<comments>https://worthliv.com/cpp_post_18.html#comments</comments>
		<pubDate>Tue, 04 Jun 2013 08:27:25 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1326</guid>
		<description><![CDATA[C++の場合、関数のオーバーロードが使えます。 オーバーライドではなく、オーバーロードです。 関数のオーバーロードとは、複数の関数を同じ名前で定義できます。 関数のオーバーロードでは、関数の名前は同じとなりますが、引数の [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_18.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_18.html" />
	</item>
		<item>
		<title>参照型の戻り値で関数定義・参照戻し</title>
		<link>https://worthliv.com/cpp_post_16.html</link>
		<comments>https://worthliv.com/cpp_post_16.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 22:01:54 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1324</guid>
		<description><![CDATA[参照戻し スポンサーリンク 参照型の宣言は、関数定義値の戻り値にも使用できます。 以下は、配列要素の値から、最大の値を取り出すプログラム。 #include &#60;iostream&#62; int&#38; bigge [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_16.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_16.html" />
	</item>
		<item>
		<title>参照型の引数で関数定義</title>
		<link>https://worthliv.com/cpp_post_15.html</link>
		<comments>https://worthliv.com/cpp_post_15.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 21:34:21 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1323</guid>
		<description><![CDATA[参照型の変数は、関数の引数や関数の戻り値で宣言してやると、上手く活用できる場合があります。 スポンサーリンク #include &#60;iostream&#62; // カウントアップ。だが上手く動かない void inc [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_15.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_15.html" />
	</item>
		<item>
		<title>const宣言の引数を持つ関数</title>
		<link>https://worthliv.com/cpp_const.html</link>
		<comments>https://worthliv.com/cpp_const.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 21:11:36 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1322</guid>
		<description><![CDATA[まずは、以下のコードを実行してみます。 スポンサーリンク #include &#60;iostream&#62; int main() { int mult(int num_i, int num_k); std::cout  [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_const.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_const.html" />
	</item>
		<item>
		<title>引数のない関数(void)・voidの戻り値</title>
		<link>https://worthliv.com/cpp_voidvoid.html</link>
		<comments>https://worthliv.com/cpp_voidvoid.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 20:43:40 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1321</guid>
		<description><![CDATA[引数のない関数 引数のない関数を宣言、または定義する場合・・・ int display(); int display() { 　　・・・ } と、()で表します。 スポンサーリンク 引数がない場合は、明示的に引数がないこ [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_voidvoid.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_voidvoid.html" />
	</item>
		<item>
		<title>関数の定義</title>
		<link>https://worthliv.com/cpp_post_14.html</link>
		<comments>https://worthliv.com/cpp_post_14.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 20:06:42 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1320</guid>
		<description><![CDATA[関数を定義するには・・・ スポンサーリンク 　(引数1, 引数2・・・) { 　　処理・・・; } という形式で定義します。 これまでも、int main()という関数をたくさん使ってきましたが、main()関数は、プロ [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_14.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_14.html" />
	</item>
		<item>
		<title>using文・using namespace</title>
		<link>https://worthliv.com/cpp_usingusing_namespace.html</link>
		<comments>https://worthliv.com/cpp_usingusing_namespace.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 14:56:33 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1319</guid>
		<description><![CDATA[ここで、モジュールが２つあると仮定します。 testモジュール（名前空間：test）、resultモジュール（名前空間：result）という2つのモジュールがあるとします。 testモジュールには、「test::argu [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_usingusing_namespace.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_usingusing_namespace.html" />
	</item>
		<item>
		<title>名前空間・namespace</title>
		<link>https://worthliv.com/cpp_namespace.html</link>
		<comments>https://worthliv.com/cpp_namespace.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 14:26:17 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1318</guid>
		<description><![CDATA[namespace C++では、名前空間（namespace）を定義でき、これにより大きなプログラムなどで、変数名の重複を避けることができます。 スポンサーリンク #include &#60;iostream&#62; na [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_namespace.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_namespace.html" />
	</item>
		<item>
		<title>変数の記憶クラス</title>
		<link>https://worthliv.com/cpp_post_13.html</link>
		<comments>https://worthliv.com/cpp_post_13.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 14:01:34 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1317</guid>
		<description><![CDATA[変数は、スコープのほかに、記憶クラスという属性も持っています。 変数の記憶クラスは、永続的なものと一時的なものの2つがあります。 スポンサーリンク グローバル変数は、常に永続的な記憶クラスとなり、プログラムが終了するまで [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_13.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_13.html" />
	</item>
		<item>
		<title>グローバル変数とローカル変数</title>
		<link>https://worthliv.com/cpp_post_12.html</link>
		<comments>https://worthliv.com/cpp_post_12.html#comments</comments>
		<pubDate>Mon, 03 Jun 2013 13:07:15 +0000</pubDate>
		<dc:creator><![CDATA[wovethng]]></dc:creator>
				<category><![CDATA[関数と変数のスコープ]]></category>

		<guid isPermaLink="false">http://localhost/web/tenacity.xsrv.jp/easyramble.com/public_html/?p=1316</guid>
		<description><![CDATA[グローバル変数とローカル変数の違いの理解は、プログラミングを行ううえでは大事です。 変数は、それが有効となるスコープ（プログラムの範囲）を持ちます。 スポンサーリンク グローバル変数とは、それが宣言された箇所から、プログ [&#8230;]]]></description>
		<wfw:commentRss>https://worthliv.com/cpp_post_12.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="https://worthliv.com/cpp_post_12.html" />
	</item>
	</channel>
</rss>
