<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/gamelearning/">
    <title>独習ゲーム制作</title>
    <link>http://w.atwiki.jp/gamelearning/</link>
    <atom:link href="https://w.atwiki.jp/gamelearning/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>独習ゲーム制作</description>

    <dc:language>ja</dc:language>
    <dc:date>2010-04-13T19:48:03+09:00</dc:date>
    <utime>1271155683</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/gamelearning/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/gamelearning/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/gamelearning/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/gamelearning/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/gamelearning/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/gamelearning/pages/1.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/gamelearning/pages/15.html">
    <title>C++ part3</title>
    <link>https://w.atwiki.jp/gamelearning/pages/15.html</link>
    <description>
      *クラスの概要
目次
#contents()

**仮引数を受け取るコンストラクタ
コンストラクタ関数には、引数を渡すことができ、そのクラスのオブジェクトを宣言する際に引数を指定します。
#divclass(bor){
…
class myclass｛
　　int a;
public:
　　myclass(int x);
…
｝;


myclass::myclass(int x)｛
a = x;
｝
…


int main()｛
myclass ob(4);
…
return 0;
｝
}

***練習問題5
作成持にコンストラクタで、現在のシステム時刻と日付を仮引数として受け取るt_and_dという名前のクラスを作成しなさい。このクラスに、受け取った時刻と日付を画面に表示するメンバ関数を含めます（時刻と日付を取得および表示するには、標準ライブラリの時刻関数と日付関数を使用します）。
#openclose(show=自己解答,border:0;){
#highlight(linenumber){{
#include &lt;iostream&gt;
/* Cのライブラリは先頭にcをつけて「.h」
を取って宣言することができる */
#include &lt;ctime&gt;
using namespace std;

class t_end_d{
	/* time_tはtime()関数の値を格納する
	変数の変数型です。time_t型はtime.hの
	中で宣言されています。 */
	time_t Ntime;
public:
	/* 仮引数を受け取るコンストラクタです */
	t_end_d(time_t t);
	void show();
};
t_end_d::t_end_d(time_t t){
	Ntime = t;
}
void t_end_d::show(){
	/* ctime()関数はそのままでは読むこと
	のできないtime()関数の値を、読むこと
	のできる文字列に変換します。 */
	cout &lt;&lt; ctime(&amp;Ntime);
}
int main(){
	time_t t;
	t = time(NULL);
	/* 引数をもったオブジェ    </description>
    <dc:date>2010-04-13T19:48:03+09:00</dc:date>
    <utime>1271155683</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/gamelearning/pages/14.html">
    <title>C++ part2</title>
    <link>https://w.atwiki.jp/gamelearning/pages/14.html</link>
    <description>
      *C++の概要

目次
#contents()

**CとC++の違い
:[[C++]]は関数を引数なしでプロトタイプする際に、voidを記述しなくていい。|
例
#divstyle(border:1px #ccc solid;margin-right:30px;){
/* C言語の場合 */
int main(void)
/* C++の場合 */
int main()
}
:Cでは任意だったプロトタイプ宣言をC++では必ず記述しなければならない。|
#divstyle(border:1px #ccc solid;margin-right:30px;){
/* sum関数がmain関数の後に宣言されているので
プロトタイプ宣言をしないといけない。 */
&amp;bold(){int sum(int b);}　←プロトタイプ宣言
int main()｛
int a;
a=sum(10);
…
｝
sum(int b)｛
…
｝
}
:C++ではvoid以外の戻り値型を持つ関数は必ずreturn文がないといけない。|
#divstyle(border:1px #ccc solid;margin-right:30px;){
int sum(int b)｛
int a;
…
&amp;bold(){return a;}
｝
int main()｛
…
c=sum(10);
&amp;bold(){return 0;}
｝
}
:C++ではローカル変数を先頭以外のどこで宣言してもいい。|
#divstyle(border:1px #ccc solid;margin-right:30px;){
int main()｛
&amp;bold(){int a=10;}
cout &lt;&lt; a;
&amp;bold(){char word=&#039;c&#039;;}
cout &lt;&lt; word;
return 0;
｝
}
:C++ではブール値（真／偽）を保存するboolデータ型が定義されている。|
#divstyle(border:1px #ccc solid;margin-right:30px;){
int main()｛
bool shingi;

shingi = false;

if(shingi) cout &lt;&lt; &quot;真    </description>
    <dc:date>2010-04-05T18:24:59+09:00</dc:date>
    <utime>1270459499</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/gamelearning/pages/13.html">
    <title>C++</title>
    <link>https://w.atwiki.jp/gamelearning/pages/13.html</link>
    <description>
      *C++の概要
C++はCの拡張版であり、オブジェクト指向が追加されたことが最大の違いです。

目次
#contents()

**入出力演算子
C言語では入出力の際にprintf()やscanf()などの入出力関数を用いていましたが、C++では&amp;u(){入力演算子&amp;bold(){&gt;&gt;}}と&amp;u(){出力演算子&amp;bold(){&lt;&lt;}}を用います。
#openclose(show=サンプル表示,border:0;){
#highlight(linenumber){{
/* ヘッター↓ */
#include &lt;iostream&gt;
/* 名前空間↓ */
using namespace std;
int main(){
  char c;
  cout &lt;&lt; &quot;Input : &quot;;
/* cinはistream型のグローバル変数 */
  cin &gt;&gt; c;
/* coutはostream型のグローバル変数 */
/* endlは改行*/
  cout &lt;&lt; &quot;Input Charactor is &quot; &lt;&lt; c &lt;&lt; endl;
  return 0;
}
}}
#divclass(bor2){
&amp;bold(){結果}
Input : a
Input Charactor is a
}
}

***練習問題1
従業員の労働時間と時給を入力し、その従業員の合計賃金を表示するプログラムを作成しなさい。（入力プロンプトを表示すること）
#openclose(show=自己解答,border:0;){
#highlight(linenumber){{
#include &lt;iostream&gt;
using namespace std;

int main(){
int time, salary, payHour;

cout &lt;&lt; &quot;労働時間(何時間)、時給&quot; &lt;&lt; endl;
/* 入力演算子を間に書くことによって、
2つ以上入力させることができる */
cin &gt;&gt; time &gt;&gt; payHour;
salary = payHour * time;
cout &lt;&lt; &quot;合計賃金：　&quot; &lt;&lt; salary &lt;&lt; endl;

return 0;
}
}}
#divclass(bor    </description>
    <dc:date>2010-04-05T18:20:47+09:00</dc:date>
    <utime>1270459247</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/gamelearning/pages/3.html">
    <title>右メニュー</title>
    <link>https://w.atwiki.jp/gamelearning/pages/3.html</link>
    <description>
      #areaedit(only=editable)
**更新履歴
#recent(20)


#areaedit(end)    </description>
    <dc:date>2010-03-23T21:47:58+09:00</dc:date>
    <utime>1269348478</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/gamelearning/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/gamelearning/pages/2.html</link>
    <description>
      **メニュー
-[[トップページ]]
-&amp;openclose2(show=C++){ [[1&gt;C++]] / [[2&gt;C++ part2]] / [[3&gt;C++ part3]]}
-Windows API
-DirectX


----

**リンク
-[[GAME Watch&gt;&gt;http://game.watch.impress.co.jp/]]
-[[ゲームのしくみ研究委員会&gt;http://www.n2gdl.net/]]

**他のサービス
-[[無料ホームページ作成&gt;&gt;http://atpages.jp]]
-[[無料ブログ作成&gt;&gt;http://atword.jp]]
-[[2ch型掲示板レンタル&gt;&gt;http://atchs.jp]]
-[[無料掲示板レンタル&gt;&gt;http://atbbs.jp]]
-[[お絵かきレンタル&gt;&gt;http://atpaint.jp/]]
-[[無料ソーシャルプロフ&gt;&gt;http://sns.atfb.jp/]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります


//**更新履歴
//#recent(20)    </description>
    <dc:date>2010-04-13T00:25:20+09:00</dc:date>
    <utime>1271085920</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/gamelearning/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/gamelearning/pages/1.html</link>
    <description>
      **&amp;bold(){&amp;wikiname()}へようこそ
-当サイトではゲーム制作について管理人自らが独学で学んだことを掲載していきたいと思います。
-プログラミングが中心ですが、3DCGなども含めて総合的に勉強していきたいと思います。
-最終的にはWindowsで動く3DCGのゲームを実際に作ることが目標です。

**今わかっているゲーム制作に必要な知識
-C/C++
-DirectX
-Windows API
-3DCG
-「三次元の座標」「三次元のベクトル」「行列」「三角関数」「ラジアン」等、数学知識
-物理

**落書き
#ref(IMG.gif,,center)    </description>
    <dc:date>2010-03-27T17:50:52+09:00</dc:date>
    <utime>1269679852</utime>
  </item>
  </rdf:RDF>
