<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.yz-learning.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Yz-Learning Base Wiki - game-engineer:classes:2021:game-programing-1:first-term:9</title>
        <description></description>
        <link>https://www.yz-learning.com/</link>
        <lastBuildDate>Sat, 04 Apr 2026 01:59:02 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://www.yz-learning.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>Yz-Learning Base Wiki</title>
            <link>https://www.yz-learning.com/</link>
        </image>
        <item>
            <title>Stringと構造体とポインタ渡し</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-08-3&amp;rev=1652325379</link>
            <description>Stringと構造体とポインタ渡し

9月8日3時間目

文字列型（std::string)

よく使う便利な文字列操作関数

整数の文字列を整数値に変換する関数 

=&gt; std::stoi(整数の文字列)


整数値を整数の文字列</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:19 +0000</pubDate>
        </item>
        <item>
            <title>キャラクターのパラメータの表示</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-09-4&amp;rev=1652325380</link>
            <description>キャラクターのパラメータの表示


#include &lt;iostream&gt;
#include &lt;string&gt;


using std::string;
using std::cin;
using std::cout;
using std::endl;


//ドラ〇エのキャラクターを考える
//name  名前：キャラクターの名前
//job   職業番号 0:戦士　1:魔法使い　2:僧侶　3:盗賊
// HP　 生命力：これが尽きると死す
// MP　 魔法力：これが尽きると魔法が使えない
//STR　 強さ：力の強さ→攻撃力に影響
//ATK　 攻撃力：攻撃能力の高さ
//DEF　 防御力：防御能力の高さ
//MGK   魔法能力：魔法を操る能力の高さ 
//ING   かしこさ：インテリジェンスの高さ
//LUK　 運：運の強さ

//僕のヒーローのパラメータ
struct mychar {
	string name;//名前
	int job;//職業番号
	int hp;
	int mp;
	int str;
	float atk;
	float def;
	float m…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title>バトルもどきをしてみる</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-13-3&amp;rev=1652325380</link>
            <description>バトルもどきをしてみる


#include &lt;iostream&gt;
#include &lt;string&gt;


using std::string;
using std::cin;
using std::cout;
using std::endl;


//ドラ〇エのキャラクターを考える
//name  名前：キャラクターの名前
//job   職業番号 0:戦士　1:魔法使い　2:僧侶　3:盗賊
// HP　 生命力：これが尽きると死す
// MP　 魔法力：これが尽きると魔法が使えない
//STR　 強さ：力の強さ→攻撃力に影響
//ATK　 攻撃力：攻撃能力の高さ
//DEF　 防御力：防御能力の高さ
//MGK   魔法能力：魔法を操る能力の高さ 
//ING   かしこさ：インテリジェンスの高さ
//LUK　 運：運の強さ

//僕のヒーローのパラメータ
struct mychar {
	string name;//名前
	int job;//職業番号
	int hp;
	int mp;
	int str;
	float atk;
	float def;
	float mgk;
…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title>構造体と関数とポインタ渡し</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-14-3&amp;rev=1652325380</link>
            <description>構造体と関数とポインタ渡し


#include &lt;iostream&gt;
#include &lt;string&gt;


using std::string;
using std::cin;
using std::cout;
using std::endl;

//一人の学生の成績
struct gradePoint
{
	string name; //学生の名前
	int number;//学籍番号
	int course[5];//科目（5科目）
	//0:国語　1:算数 2:理科　3:社会　4:英語
};


//プロトタイプ宣言
void setStudentStatus(gradePoint _stu, string _name,int _stunum,
						int koku, int su, int rika, int shakai, int eigo);
void printStudent(gradePoint _stu);



//関数定義
void setStudentStatus(gradePoint _stu, //パラメタをセットする学生を表す構造体
	    …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title>［繰り返し（反復）構造と無限ループとbreakとcontinue］</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-15-3&amp;rev=1652325380</link>
            <description>［繰り返し（反復）構造と無限ループとbreakとcontinue］

繰り返し構造の基本は、だいたいできたと思います。あとはいろんな例題をこなすうちに自由自在に繰り返しを使いこなせると思います。繰り返しであと詰まりそうなところに、多重ループと無限ループがありそうな気がします。多重ループは、のちに出てくる配列のところに委ねることにして、ここでは無限ループを扱ってみます。…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title>オルテガとモブ夫どちらかが倒れるまでバトルを続ける</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-17-2&amp;rev=1652325380</link>
            <description>オルテガとモブ夫どちらかが倒れるまでバトルを続ける

void beatCharacter(struct mychar* _to, struct mychar* _from);関数によりmychar型の構造体を渡すと、１度だけ攻撃をすることができるようになった。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title>バトルメニュー（と再帰呼び出し featuring Algorithm）</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-21-3&amp;rev=1652325380</link>
            <description>バトルメニュー（と再帰呼び出し featuring Algorithm）

再帰呼び出し(Recursive Call)

関数定義の際に、関数の中で自分自身を呼び出すような処理方法



int kaijo(int n)
{
	if(n==0)
		return 1;
	else{
		cout &lt;&lt; n &lt;&lt; &quot;*kaijo(&quot; &lt;&lt; n-1 &lt;&lt;&quot;)&quot; &lt;&lt; endl;
		return( n*kaijo(n-1));
	}
}

int main() {
  int res = kaijo(5);
  cout &lt;&lt; &quot;Ans:&quot; &lt;&lt; res &lt;&lt; endl;
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title>試験範囲について</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-21-4&amp;rev=1652325380</link>
            <description>試験範囲について

	*  ゲームプログラミングⅠ
		*  試験日時：９月２７日（月）　１２：３５～１３：４５ 
			*  コンピュータの仕組み
				*  アナログとデジタル（A/D変換）
				*  用語：CPU、コンパイル、コンパイラ</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title>９月２１日５時間目　RPGバトルメニューに防御が追加される</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:9-21-5&amp;rev=1652325380</link>
            <description>９月２１日５時間目　RPGバトルメニューに防御が追加される


#include &lt;iostream&gt;
#include &lt;string&gt;


using std::string;
using std::cin;
using std::cout;
using std::endl;


//ドラ〇エのキャラクターを考える
//name  名前：キャラクターの名前
//job   職業番号 0:戦士　1:魔法使い　2:僧侶　3:盗賊
// HP　 生命力：これが尽きると死す
// MP　 魔法力：これが尽きると魔法が使えない
//STR　 強さ：力の強さ→攻撃力に影響
//ATK　 攻撃力：攻撃能力の高さ
//DEF　 防御力：防御能力の高さ
//MGK   魔法能力：魔法を操る能力の高さ 
//ING   かしこさ：インテリジェンスの高さ
//LUK　 運：運の強さ

//僕のヒーローのパラメータ
struct mychar {
	string name;//名前
	int job;//職業番号
	int hp;
	int mp;
	int str;
	float atk;
	float…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2021:game-programing-1:first-term:9:samp&amp;rev=1652325380</link>
            <description>a</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
    </channel>
</rss>
