<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>初心者による初心者向けプログラミング講座</title>
<link>https://ameblo.jp/shoshinsha-pg/</link>
<atom:link href="https://rssblog.ameba.jp/shoshinsha-pg/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>最初はC#から入っていきます～講座といっても学習記録ですので、「まとめ記事」以外は間違った解釈をしている可能性もあります。ご注意を^^;</description>
<language>ja</language>
<item>
<title>C#:第5講 多次元配列</title>
<description>
<![CDATA[ 今日は、多次元配列というものの学習記録です。<br><br><strong><font color="#FF0000"><font size="2">--Sample7--</font></font></strong><br><pre><br><br>using System;<br><br>class Num<br>{<br>    static void Main()<br>    {<br><strong><font color="#EE82EE"><br>        int[,] a = {<br>                       {1,2,0},<br>                       {4,5,6},<br>                       {7,8,9}<br>                   };<br></font><br><font color="#FA8072"><br>        a[0, 2] = 3;<br></font><br></strong><br>        Console.WriteLine(a[0, 0] + a[0, 1] + a[0, 2]);<br>        Console.WriteLine(a[1, 0] + a[1, 1] + a[1, 2]);<br>        Console.WriteLine(a[2, 0] + a[2, 1] + a[2, 2]);<br><br><br>    }<br>}<br><br><br></pre><br><br><font size="2"><font color="#FF0000"><strong>--Result7--</strong></font></font><br>6<br>15<br>24<br><br><br>画像でやっていたんですが、やっぱりなんとなく面倒だったので。。<br><br><br><br>インデントをつける方法はわかったんですが、色までは残せませんでした。。<br><br><br><br>というわけで、文字のフォントは別のことに生かしたいと思います。<br><br><br><br>余談、class Numberとやると、エラーがでました。<br><br><br>Numと書き換えたら大丈夫でしたので、Numberはいわゆる「予約語」ってやつなんすかね<br><br><br>予約語っていうのは、機械が考えてる意味が決まっているので人間が独自の意味で使ってはいけない文字・・・という風に認識しています。<br><br><br><br>さて本題。重要事項は今日は2つ。<br><br><br><strong><font color="EE82EE"><br>①多次元配列の宣言（初期化）:int[,] = { ~ }（2次元の場合）<br></font></strong><br><br>今回のメインですね。<br><br><br>コードに「軸」を書き込んだ下の図を見ていただくとわかりやすいかと。<br><br><br><a href="http://stat.ameba.jp/user_images/20140317/22/shoshinsha-pg/5c/07/p/o0335021712878489455.png"><img src="https://stat.ameba.jp/user_images/20140317/22/shoshinsha-pg/5c/07/p/o0335021712878489455.png" alt="" width="335" height="217" border="0"></a><br><br>変数名[y座標,x座標]という書き方で、値の位置を指し示す、というわけです。<br><br>つまり、この多次元配列（二次元配列）を宣言した瞬間にこの座標平面がぽーんと生成されるイメージですね。<br><br><br><strong><font color="FA8072"><br>②多次元配列の値参照:変数名[y座標,x座標]（[]は値の位置）<br></font></strong><br><br>今回のa[0,2] = 3を和訳すると「変数aのy座標0,x座標2の位置に3を代入する」<br><br>ということになります。<br><br>①における座標をイメージできれば簡単に理解できます。<br><br>和訳すると、<br><br><strong><font color="#9370DB">・配列変数aを<br>120<br>456<br>789<br>と定義する<br>・位置(y,x)=(0,2)の変数の箱a[0,2]に3を代入する<br>・a[0,0]+a[0,1]+a[0,2]の計算結果を表示、改行<br>・a[1,0]+a[1,1]+a[1,2]の計算結果を表示、改行<br>・a[2,0]+a[2,1]+a[2,2]の計算結果を表示、改行。</font></strong><br><br><br><br>さて、、、実は今回のResultを<br><br>123<br>456<br>789<br><br>という風に表したかったんですが・・・<br><br><br>というわけでいろいろ試行錯誤してみた結果、こうすればできました！！<br><br><strong><font color="#FF0000"><font size="2">--Sample8--</font></font></strong><br><pre><br><br>using System;<br><br>class Number<br>{<br>    static void Main()<br>    {<br>        int[,] a = {<br>                       {1,2,0},<br>                       {4,5,6},<br>                       {7,8,9}<br>                   };<br><br>        a[0, 2] = 3;<br><br>        Console.WriteLine(a[0, 0] <strong><font color="#FF0000">+ "" +</font></strong> a[0, 1] <strong><font color="#FF0000">+ "" +</font></strong> a[0, 2]);<br>        Console.WriteLine(a[1, 0] <strong><font color="#FF0000">+ "" +</font></strong> a[1, 1] <strong><font color="#FF0000">+ "" +</font></strong> a[1, 2]);<br>        Console.WriteLine(a[2, 0] <strong><font color="#FF0000">+ "" +</font></strong> a[2, 1] <strong><font color="#FF0000">+ "" +</font></strong> a[2, 2]);<br><br><br>    }<br>}<br><br></pre><br><br><font size="2"><font color="#FF0000"><strong>--Result8--</strong></font></font><br>123<br>456<br>789<br><br><br>なんでこういう結論に至れたかというと、「値の型が異なるものの場合はくっつける」という推測をしたからです。<br><br><br>つまり、隣り合う値が整数どうしの足し算の場合は計算してしまうんで、「文字列」を間に挟むという発想です。<br><br><br>文字列「」（何もない）を挟むことでうまくいくんじゃないかな～であたりでした^ ^<br><br>和訳すると、<br><strong><font color="#9370DB">・配列変数aを<br>120<br>456<br>789<br>と定義する<br>・位置(y,x)=(0,2)の変数の箱a[0,2]に3を代入する<br>・a[0,0]とa[0,1]とa[0,2]をくっつけて表示、改行<br>・a[1,0]とa[1,1]とa[1,2]をくっつけて表示、改行<br>・a[2,0]とa[2,1]とa[2,2]をくっつけて表示、改行。</font></strong><br><br><br>今日は以上です。<br><br><a href="http://it.blogmura.com/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログへ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fimg%2Fit88_31.gif" width="88" height="31"></a><br><br><br><p></p><br><br><br><p><a href="http://it.blogmura.com/itinfo/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログ ＩＴ技術情報へ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fitinfo%2Fimg%2Fitinfo88_31.gif" width="88" height="31"></a></p>
]]>
</description>
<link>https://ameblo.jp/shoshinsha-pg/entry-11798520261.html</link>
<pubDate>Mon, 17 Mar 2014 22:32:22 +0900</pubDate>
</item>
<item>
<title>C#:第4講 配列変数</title>
<description>
<![CDATA[ <p>なんか今日のは難しそう・・だったけど意外とそうでもなかったです^ ^</p><br><br><p>今日は、配列変数の学習記録です。</p><p><br><font color="#ff0000" size="2"><strong>--Sample5--</strong></font></p><p><br><a href="http://stat.ameba.jp/user_images/20140315/13/shoshinsha-pg/ee/07/j/o0590021912875785809.jpg"><img border="0" alt="" src="https://stat.ameba.jp/user_images/20140315/13/shoshinsha-pg/ee/07/j/o0590021912875785809.jpg"></a> <br></p><p><font color="#ff0000" size="2"><strong>--Result5--</strong></font></p><p>180+148+200+187+79=18014820018779</p><br><br><p>初心者向けにしてはわかりづらいサンプルを作ってしまいました。。</p><br><br><p>申し訳ない。。このコードも初心者が書いてるからですね笑</p><br><br><p>・・・となり、自分の思っていたのと予想が外れました。</p><br><br><p>とりあえず</p><br><br><p>180+148+200+187+79=794</p><br><br><p>と表示したかったんですが・・・</p><p><br></p><p>これは疑問点に残っている+の使い方に関係がありそうです。</p><p><br></p><p>しょうがない・・知恵袋で聞いてみるか。</p><p><br></p><p>というわけで、今回はSample6を主に使って配列変数についての解説をしていきます。</p><br><p><strong><font color="#ff0000" size="2">--Sample6--</font></strong></p><p><br><a href="http://stat.ameba.jp/user_images/20140315/13/shoshinsha-pg/64/5a/j/o0563025312875785810.jpg"><img border="0" alt="" src="https://stat.ameba.jp/user_images/20140315/13/shoshinsha-pg/64/5a/j/o0563025312875785810.jpg"></a> <br></p><p><strong><font color="#ff0000" size="2">--Result6--</font></strong></p><p>180+148+200+187+79=794</p><br><p><br>よし、うまくいきましたね！先に計算させてみました！</p><br><p><br>さて今回の重要事項は2つ。</p><p><br></p><p><strong>①</strong><strong>配列変数の宣言、代入→型名 [] 任意の変数名 = {データ1,データ2 ,データ3 ・・・,データn }</strong></p><br><p>これは、宣言と代入を同時に行っているので、「初期化」ですね。</p><br><p>new演算子というのも用いて宣言する方法なんかもあったみたいですが、</p><br><p>覚えてたらまとめ記事のほうに書こうと思います。。</p><br><p>そして、{データ1,データ2 ,データ3 ・・・,データn }の左側のデータから順番に</p><br><p>変数名[0],変数名[1],変数名[2]・・・という変数の箱に代入されていく仕組みです。</p><br><p>何に使うんだろ笑　</p><br><p>まあ確かに同じ種類のものをまとめて定義したりすると整理しやすそう</p><br><br><p><br><strong><br></strong></p><p><strong>②配列変数の利用→変数名[配列の番号]を変数と同じように使う</strong></p><br><p>変数名[0],変数名[1],変数名[2]・・・という変数の箱が同時に宣言（今回の場合は初期化）され、それをただの変数と同じようにして使えばよいです。</p><br><p>注意しないといけないのは、0から番号が振られるので、もし5つの値があったら0,1,2,3,4という具合に変数名[0]～変数名[4]まで定義されることですね。変数名[5]を用いるとエラーになります。</p><br><br><br><br><p>では最後に、和訳。</p><br><p><strong><font color="#9370db">整数型の配列変数aを宣言し、番号0から順番に180、148、200、187、79を代入<br>整数型の変数Resultを宣言し、a[0]+a[1]+a[2]+a[3]+a[4]の結果を代入<br>「a[0]+a[1]+a[2]+a[3]+a[4]=」とResultの中身をくっつけて表示</font></strong></p><br><p>最後の行は少し省略しましたけど、まあ今までのノリでわかると思う・・</p><br><br><p><br>今日は以上です～</p><br><a href="http://it.blogmura.com/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログへ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fimg%2Fit88_31.gif" width="88" height="31"></a> <br><br><br><p><a href="http://it.blogmura.com/itinfo/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログ ＩＴ技術情報へ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fitinfo%2Fimg%2Fitinfo88_31.gif" width="88" height="31"></a> </p>
]]>
</description>
<link>https://ameblo.jp/shoshinsha-pg/entry-11796696293.html</link>
<pubDate>Mon, 17 Mar 2014 21:13:53 +0900</pubDate>
</item>
<item>
<title>C#: 第3回 文字列</title>
<description>
<![CDATA[ <p>今日は文字列についての学習記録です。</p><p><br><strong><font color="#ff0000" size="2">--Sample4--</font></strong><br></p><div align="center"><a href="http://stat.ameba.jp/user_images/20140314/22/shoshinsha-pg/7d/a8/p/o0613027812875264127.png"><img border="0" alt="" src="https://stat.ameba.jp/user_images/20140314/22/shoshinsha-pg/7d/a8/p/o0613027812875264127.png"></a> </div><p><br><br></p><p><strong><font color="#ff0000" size="2">--Result4--</font></strong></p><br><p>松井秀樹はホームランを507本打った。</p><br><br><br><br><br><p>インデントがうまくいかなかったので、ちょっと面倒だけど、写真で貼ることにしました。</p><br><br><p>インデントがあったほうが読みやすいっすよね～余裕があったら前記事のほうも書き直しておきます。<br></p><br><br><p>何かいい方法がある人は教えていただきたいですが、皆さん苦労してるみたいですので素人には無理や笑</p><br><br><br><p>ちなみに507本は日米通算です←</p><br><br><br><p>今回の初出重要事項は2つ。</p><p><br></p><br><p><strong>①string Name（任意の変数名）</strong></p><br><br><p>intと同じ位置に今度はstringという単語が。</p><br><br><p>stringは「文字列」を表す変数の型のことです。</p><br><br><p>つまり、文字列型の情報を格納しておくNameという箱、といった感じです。</p><br><br><br><br><br><p><strong>②初期化：string 変数名 = "～";</strong></p><br><br><p>前の記事にもちょこっと出てきたけど、文字列としてパソコンに認識させるには""で囲うことが必要です。</p><br><br><p>stringは文字列型のデータしか格納できないので、ダブルクオーテーションで囲わなくてはいけないわけです。</p><br><br><p>まあ、それは前回出てきたからいいとして・・</p><br><br><p>今回注目するのは前回と少し違う変数の宣言の仕方です。</p><br><br><p>宣言と代入を同時に行っている感じですね～</p><br><br><p>宣言と代入を同時に行うことを「初期化」と言います。</p><p><br></p><br><br><p>今回のコードを和訳してみるとこんななります。</p><br><br><p><font color="#9370db"><strong>文字列型のNameという変数を宣言して文字列"松井秀樹"を代入<br>文字列型のResultという変数を宣言して文字列"ホームラン"を代入<br>整数型のnumberという変数を宣言して整数507を代入<br>Nameの中身と"は"とResultの中身と"を"とnumberの中身と"本打った。"をくっつけて表示</strong></font></p><br><br><br><p>今回もまあいちおうちゃんと説明はできました。</p><br><br><p>今日は以上です！</p><br><a href="http://it.blogmura.com/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログへ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fimg%2Fit88_31.gif" width="88" height="31"></a> <br><br><br><p><a href="http://it.blogmura.com/itinfo/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログ ＩＴ技術情報へ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fitinfo%2Fimg%2Fitinfo88_31.gif" width="88" height="31"></a> </p><br><br><p>～残った疑問点メモ～</p><p>・Console.<br>・メソッド<br>・using<br>・System<br>・class<br>・public<br>・static<br>・void<br>・Main()</p><p>・+の利用について</p><br>
]]>
</description>
<link>https://ameblo.jp/shoshinsha-pg/entry-11796256289.html</link>
<pubDate>Sat, 15 Mar 2014 09:44:52 +0900</pubDate>
</item>
<item>
<title>C#:第2講 変数</title>
<description>
<![CDATA[ <p>今日は3つ目の記事更新～</p><br><p>だんだん記事書くのも慣れてきました。。</p><br>さあ！！アクセス数アップだ！！←<br><br><br><p><br>いきなり前記事はコードをがっつり書いてしまいましたが、</p><p> </p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">using</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> System;<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">class</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: #2b91af; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">XXX</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">{<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">public</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">static</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">void</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> Main()<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span>{</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span>}<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">}<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><br><p> </p><p>この部分はフレーズだと思って今は覚えてください。（XXXは任意の名前）</p><br><br><br><p>なぜなら、僕もまだ仕組みが分かっていないので説明していないからです^^;</p><br><br><p>重要なのは、</p><p> </p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">public</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">static</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">void</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> Main()<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span>{</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span>}<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span> </p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><br><p></p><p>の{ }部分に書き込む内容です。</p><br><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><br><br><br><br> </p><p>さて本題。今日は変数の利用についてです。</p><br><p><strong><font color="#ff0000"><br></font></strong></p><p><strong><font color="#ff0000"><br></font></strong></p><p><strong><font color="#ff0000">--Sample2--</font></strong><font color="#ff0000"><br></font></p><p><font color="#ff0000"><strong><br></strong></font> </p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">using</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> System;<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">class</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: #2b91af; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">Data</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">{<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">public</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">static</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">void</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> Main()<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span>{<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">        </span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">int</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> a;<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">        </span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">int</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> b;<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">        </span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">int</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> c;<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">        </span>a = 100;<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">        </span>b = 50;<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">        </span>c = a + b; </span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">//</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; BACKGROUND: white; COLOR: green; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: &quot;ＭＳ ゴシック&quot;">※</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">1</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ 明朝&quot;,&quot;serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-fareast-font-family: &quot;ＭＳ 明朝&quot;; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Arial">：値計算の</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">+</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">        </span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: #2b91af; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">Console</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">.WriteLine(</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: #a31515; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">"a+b="</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> + c); </span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">//</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; BACKGROUND: white; COLOR: green; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: &quot;ＭＳ ゴシック&quot;">※</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">2</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ 明朝&quot;,&quot;serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-fareast-font-family: &quot;ＭＳ 明朝&quot;; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Arial">：言葉をくっつけるよ～の</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">+</span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">    </span>}<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">}<br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"></span></p><p> </p><p></p><br><p> </p><p><strong><font color="#ff0000"><br></font></strong> </p><p><font color="#ff0000"><strong>--Result2--</strong></font><font color="#ff0000"><strong><br></strong></font></p><p>a+b=150<br><br></p><p> </p><p><br> </p><p>VisualStudioでコードを書いていくとこのような色分けになるんですが、何を意味してるんでしょうね笑</p><p><br></p><br><br><p>今回初出の重要事項は4つ！</p><p><br></p><p> </p><p><strong>①int a（任意の変数名）;</strong></p><br><p>intはinteger（整数）から来ていて、この部分を和訳するなら「整数型の変数aを宣言しました」と訳せます。</p><br><br><p>変数には必ず型を設定しないといけないみたいですね。</p><br><br><p>あと、変数を定義することを「変数の宣言」といいます。</p><br><br><br><br><p><strong>②=（イコール）</strong></p><br><br><p>数学なんかでは"="といえば左辺と右辺が等しい、って考えますが、プログラミングでは少し解釈が異なるみたいです。</p><br><br><p>和訳すると、「左辺に右辺を代入する」となり、「代入」という考え方になります。</p><br><br><p>変数を値を格納する箱、という風に考えてその箱の中に値を入れる、ということですね。</p><br><br><p>ちなみに「演算子」というやつの一種らしい。。</p><p><br></p><br><p><strong>③"～"（ダブルクオーテーション）</strong></p><br><br><p>これで挟まれた～の部分は「文字列」と認識されます。</p><br><br><p>今回の実行結果をみてみると、""の中身はそのまま表示し、""がなければその内容中身を表示する（格納されている値を表示する）という意味になりそうです。</p><br><br><br><br><p><strong>④+（プラス）</strong></p><br><br><p>これも「演算子」の一つ。※1の行にでてきた+は、aとbを足し算する、の意味で使っています。</p><br><br><p>一方、※2の行にでてきた+は、「"a+b="」と「cの内容中身」をくっつける（くっつけて表示する）という意味で使っています。</p><br><br><p>()の中と外の違いなのか？でも以下のように書いて実行するとこんななります</p><p><font color="#ff0000"><strong><br></strong></font> </p><p><font color="#ff0000"><strong>--Sample3--</strong></font><br></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes"><br></span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: rgb(43,145,175); mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">        Console</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">.WriteLine(a + b);</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ 明朝&quot;,&quot;serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-fareast-font-family: &quot;ＭＳ 明朝&quot;; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Arial">　</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">//</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; BACKGROUND: white; COLOR: green; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: &quot;ＭＳ ゴシック&quot;">※</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">3</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ 明朝&quot;,&quot;serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-fareast-font-family: &quot;ＭＳ 明朝&quot;; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Arial">：値計算の</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">+</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span></p><p><br><strong><font color="#ff0000"><br></font></strong> </p><p><strong><font color="#ff0000">--Result3--</font></strong></p><p>150</p><br><br><p>ちゃんと計算してるんですよね・・・</p><br><br><p>なんででしょうかね？・・・今日の勉強ではわかりませんでした。疑問点として追加しておきましょう。</p><br><p><br></p><p>とりあえず、今回のコードを和訳してみます。</p><br><br><p><strong><font color="#9370db">整数型の変数aを宣言<br>整数型の変数bを宣言<br>aに100を代入<br>bに50を代入</font></strong></p><p><strong><font color="#9370db">cにa+bの計算結果を代入<br>文字列「a+b=」とcの内容中身をくっつけて表示</font></strong></p><br><br><p>一応理解はできるな・・・</p><p><br></p><br><p>今日は以上です。</p><br><a href="http://it.blogmura.com/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログへ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fimg%2Fit88_31.gif" width="88" height="31"></a> <br><br><br><p><a href="http://it.blogmura.com/itinfo/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログ ＩＴ技術情報へ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fitinfo%2Fimg%2Fitinfo88_31.gif" width="88" height="31"></a> </p><p><br>～残った疑問点メモ～</p><p>・Console.<br>・メソッド<br>・using<br>・System<br>・class<br>・public<br>・static<br>・void<br>・Main()</p><p>・+の利用について</p><p></p><br>
]]>
</description>
<link>https://ameblo.jp/shoshinsha-pg/entry-11796133126.html</link>
<pubDate>Fri, 14 Mar 2014 19:41:48 +0900</pubDate>
</item>
<item>
<title>C#:第1講 Hello Ameba!</title>
<description>
<![CDATA[ <p>書き忘れましたが、実行環境の整え方は他のサイトを参考にしてください。</p><br><p>(・・VisualStudioをダウンロードしただけでしたけど☆)<strong><font color="#ff0000"><br></font></strong></p><p><strong><font color="#ff0000"><br></font></strong></p><p><strong><font color="#ff0000"><br></font></strong></p><p><strong><font color="#ff0000">--Sample1--</font></strong></p><br><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">using</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> System; <br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">class</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: #2b91af; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">Hello</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">{ <br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes"><br></span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">public</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">static</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">&nbsp;</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: blue; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">void</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"> Main() <br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes"><br></span>{ <br></span></p><p class="MsoNormal" style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; TEXT-AUTOSPACE: ; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes"><br></span></span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: #2b91af; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">Console</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">.WriteLine(</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: #a31515; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">"Hello Ameba!"</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">);　<span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: green; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt">//</span><span style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; BACKGROUND: white; COLOR: green; mso-highlight: white; mso-font-kerning: 0pt; mso-bidi-font-family: &quot;ＭＳ ゴシック&quot;">※1:ここに処理を書く！</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-font-kerning: 0pt"><br></span></span></p><p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt"><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; BACKGROUND: white; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-highlight: white; mso-font-kerning: 0pt"><span style="mso-spacerun: yes"><br></span>}</span><span lang="EN-US" style="FONT-SIZE: 9.5pt; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; COLOR: black; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin; mso-bidi-theme-font: major-latin; mso-font-kerning: 0pt"><br></span></p><br><br><br><p><strong><font color="#ff0000"><br></font></strong></p><p><strong><font color="#ff0000">--Result1--</font></strong></p><br><p>Hello Ameba!</p><p><br><br><br><br><br></p><p>できるだけこんな感じで最初にサンプルコードと結果→それの解説、という具合に行きたいと思います。</p><br><p><br></p><p>サンプルコードは自分で学習したことを応用してできるだけオリジナルでいきます。。</p><br><p><font color="#ff0000"><strong><br></strong></font></p><br><br><p>えー普通はね、ここはHello,World!とかHello,C#!とからしいんですが、</p><br><br><br><br><br><p>まあなんでもいいわけでして、とりあえずアメーバさんにご挨拶です。</p><br><br><br><br><br><p>これを一つ一つ見ていこうかと思ったんですが・・・</p><br><br><br><br><p>どの入門サイトでも最初はスルーしている内容はここでもスルーします。（つまり自分も知らない^^;）<br><br><br></p><p>理解すればいいのは、※1であらわした部分に処理内容を書いていく～ってことです。</p><br><br><p>つまり、その部分以外はまだ僕も何も知りませんのでご心配なく。。</p><p><br></p><p><br></p><p>THE　初心者ですから！！（これ大事）<br><br></p><br><br><p>そしてこのコード内の重要事項。今日は3つ！</p><br><br><p><strong><br></strong></p><p><strong><br></strong></p><p><strong>①Console.WriteLine("表示させる内容");</strong></p><br><br><p>これはWriteLineメソッドといいます。「表示して改行」という処理を意味します。<br><br><br></p><p>Console.というのはとりあえず決まり文句？程度の認識で^^;<br><br><br></p><p>ちなみにWriteメソッドというものもあり、それは「表示する」改行はしない。<br><br><br></p><p>メソッド、とは処理を表す用語のようですが、詳しくはまだよくわかりませんのでするーします～</p><br><br><br><br><p><strong><br></strong></p><p><strong><br></strong></p><p><strong><br></strong></p><p><strong><br></strong></p><p><strong>②;（セミコロン）</strong></p><br><br><p>日本語の「。」と同じようなもので、処理の区切りなんかを表します。</p><br><br><br><p><strong><br></strong></p><p><strong><br></strong></p><p><strong><br></strong></p><p><strong><br></strong></p><p><strong>③//（スラッシュ2本）</strong><br><br><br></p><p>専門用語で「コメント」と呼ばれます。</p><br><br><p>プログラムとして読み取られることはなくて、コードを書く人や見る人がわかるようなメモを書き残すというもの。//の後にメモを書いていく感じです。</p><br><br><p>複数行にまたがる場合はべつの形式があるらしいけど今は省略～</p><br><br><br><br><br><br><p>疑問点はまだまだ多いですが、今日は以上です。初心者による初心者向けのC#講座、第1講でした～</p><br><br><br><a href="http://it.blogmura.com/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログへ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fimg%2Fit88_31.gif" width="88" height="31"></a> <br><br><br><p><a href="http://it.blogmura.com/itinfo/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログ ＩＴ技術情報へ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fitinfo%2Fimg%2Fitinfo88_31.gif" width="88" height="31"></a> <br><br></p><p><br>～残った疑問点メモ～</p><p>・Console.<br>・メソッド<br>・using（なんとなくわかるけど^^;）<br>・System<br>・class<br>・public<br>・static<br>・void<br>・Main()</p><br><br><br>
]]>
</description>
<link>https://ameblo.jp/shoshinsha-pg/entry-11795920954.html</link>
<pubDate>Fri, 14 Mar 2014 14:19:18 +0900</pubDate>
</item>
<item>
<title>このブログを読むにあたって～</title>
<description>
<![CDATA[ <p>さて、早速ですが、今日か明日から講座を初めていこうと思います。</p><br><br><p>アクセス数15pvか・・・さすがに少ないな・・・</p><br><br><p>受験ブログのほうほど盛り上がることはないのかなーと思いつつ、ちょいちょい更新しますので</p><br><br><p>もしこのブログをたまたま見つけて言いたいことがあればコメントなんかで言ってください。</p><br><br><p>コメ返好きなので^ ^　　さて本題。</p><br><br><br><p>このブログの構成について。</p><br><br><p>学習（普通の記事）とまとめの2本立てで今のところやっていこうと思っています。</p><br><br><p>学習、については、そこで思ったことを残していくだけですので、誤った知識が存在する可能性も大です。</p><br><br><p>まとめノート、については一応自分なりに確信を持ったことを教科書っぽくまとめていくので誤った知識や考え方があってはいけない記事になります。</p><br><br><p>いずれにしても、誤りに気付いたかたは指摘していただきたいし、たまに書く疑問点なんかにも答えていただくと嬉しい限りです。</p><br><br><p>また、目標として、このブログが超超初心者向けのテキストになる、ということがありますので</p><br><br><br><p>わからないことがあったら質問ももちろん受け付けます。こたえられるかわかりませんが^^;</p><br><br><p>知識がない者同士同じ立場で話し合えるので変に気を使わないでお付き合いくださいな</p><br><br><br><p>この記事は以上です。</p><p><br><br><a href="http://it.blogmura.com/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログへ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fimg%2Fit88_31.gif" width="88" height="31"></a> <br></p><br><p><a href="http://it.blogmura.com/itinfo/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログ ＩＴ技術情報へ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fitinfo%2Fimg%2Fitinfo88_31.gif" width="88" height="31"></a> <br><br></p><p>ブログランキングに参加しています。良かったらクリックなりしてくださいねー</p>
]]>
</description>
<link>https://ameblo.jp/shoshinsha-pg/entry-11795847621.html</link>
<pubDate>Fri, 14 Mar 2014 12:06:14 +0900</pubDate>
</item>
<item>
<title>プログラミング初心者がプログラミング講座を始めるみたいです</title>
<description>
<![CDATA[ <p>どうも！uraMaxと申します。ちょっと長めの記事です</p><p><br></p><br><p>別のアカウントで受験ブログなんかをやっておりまして、まあ探せば「こいつかな？」くらいは見つけられるかと思います。</p><br><br><p>2ブログを平行してやろうと思います。続くかな～^^;</p><p><br></p><br><br><p>では本題。このブログの方針についてです</p><br><br><br><p>タイトル通り、自分はプログラミングの超初心者で、行く大学も工学部じゃないので高い目標とかもありません^^;あくまで趣味です。</p><br><br><p>ただ、あの英語の文字の羅列、かといって整然と並んでいるコード・・・</p><br><br><p>なんかかっけ～・・・で始めようとおもいました笑　　まあお付き合いください^ ^</p><p><br></p><br><br><p>一応の目的目標はいろいろな言語をそこそこまで仕えて、そこそこのアプリケーションが作れるようになれればいーなーと思っております。</p><p><br></p><br><p>ブログのタイトルにありますように、一応「初心者講座」ということで、読者さまが言語を勉強できるような形で進めていきたいと思っています。</p><p><br></p><br><p>よく「～入門」というサイトがあり、非常にわかりやすいのですが</p><br><br><p>どのサイトもスペシャリストが書いていらっしゃるので、「プロの常識」≠「初心者の知識」となっていることも多々あるかと。</p><br><br><p>まああくまで自己満の記事になるわけですけれども、IT用語曖昧、プログラミングの知識ほぼ皆無な自分がが学習記録を講座っぽく残しておけば・・</p><br><br><p>初心者のつまづくところにちゃんとつまづけるかと笑</p><br><br><p>あと、AmebaのSNS性の大きさを利用して、プロの方からのご教授をいただけたり・・・みたいなことを期待しております笑</p><br><br><p>まあのんびりマイペースにやっていきますが、まったくやったことねぇ！！って人でも最初から読んでいただければ多分わかるんじゃないかな？だって俺もほとんど初心者やし^^;</p><p><br></p><br><p>そして最後に、気になる言語の種類。</p><br><br><p>いろいろやっていきたいと思いますが、まずはC#に手を付けてみたいと思います！</p><br><br><p>なぜそれを選んだ！？その理由は友達に勧められたから笑</p><br><br><p>どの言語がどういったことに向いてるのかとかもわかんないです。というかいろいろな言語に手をだしてみて初めて分かることなんじゃないかな？</p><br><br><p>どうなんでしょうかね笑</p><br><br><p>そんなかんじで意識の低い自分ですが、もし読んでくださる方がいらっしゃればどうぞよろしくお願いしますm(_ _)m</p><p><br><br><a href="http://it.blogmura.com/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログへ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fimg%2Fit88_31.gif" width="88" height="31"></a></p><p><br><a href="http://it.blogmura.com/c_sharp/"><img border="0" alt="にほんブログ村 ＩＴ技術ブログ C#へ" src="https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fit.blogmura.com%2Fc_sharp%2Fimg%2Fc_sharp88_31.gif" width="88" height="31"></a> <br></p><p><br></p><p>次の記事までこのブログの概要記事です。</p><br><p>そのさらに次の記事から「初心者による初心者向けC#講座」、開始します～</p>
]]>
</description>
<link>https://ameblo.jp/shoshinsha-pg/entry-11795413588.html</link>
<pubDate>Thu, 13 Mar 2014 21:50:44 +0900</pubDate>
</item>
</channel>
</rss>
