<?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:2022:game-programing-1:second-term:10</title>
        <description></description>
        <link>https://www.yz-learning.com/</link>
        <lastBuildDate>Sat, 04 Apr 2026 03:16:38 +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>構造体とクラスと関数</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-20-2&amp;rev=1666272864</link>
            <description>構造体とクラスと関数

クラスとインスタンスとオブジェクト

クラスとインスタンス（去年の資料）
あちらの資料からはバックボタンで戻ってきてね。

クラスの宣言と分割コンパイルその他　ここの練習問題やってみるといいよ！


今日やったやーつー



#include &lt;iostream&gt;
using namespace std;

struct game_char //構造体
{
	int hp; //メンバ変数
	int mp; //メンバ変数
};
//クラス宣言　（クラスのメンバを書き連ねる）
class cGameChar //クラス　基本的にプライベート 
{
private: //アクセス権
	int hp;
	int mp;
public: //アクセス権
	//setter セッター関数
	void sethp(int _hp); //関数宣言
	void setmp(int _mp);
	//getter　ゲッター関数
	int gethp(){ return(this-&gt;hp); } //インライン定義
	int getmp(){ return(this-&gt;mp);…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 20 Oct 2022 13:34:24 +0000</pubDate>
        </item>
        <item>
            <title>ポインタについて理解を深めるために演習問題をやるよ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-23-x1&amp;rev=1666507294</link>
            <description>ポインタについて理解を深めるために演習問題をやるよ

演習１

変数のアドレスを表示して確認するやつ
前回、変数のアドレスを表示して、変数のアドレス、および、配列のアドレスの変化と型の関係を確認するプログラムを作ってみた。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 23 Oct 2022 06:41:34 +0000</pubDate>
        </item>
        <item>
            <title>ポインタについて理解を深めるために演習問題をやるよ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-23-x21&amp;rev=1666507386</link>
            <description>ポインタについて理解を深めるために演習問題をやるよ

演習２

昔やった文字配列を覚えているかな？



char str[] = &quot;abc&quot;;


これは、“abc”という文字を１文字ずつstrと言う文字型の配列（char型の配列）に並べて初期化するという意味でした。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 23 Oct 2022 06:43:06 +0000</pubDate>
        </item>
        <item>
            <title>ポインタについて理解を深めるために演習問題をやるよ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-23-x22&amp;rev=1666507456</link>
            <description>ポインタについて理解を深めるために演習問題をやるよ

問題２

同様に、文字列の長さをポインタを使って調べなさい。



char str[] = &quot;youetsu@jc-21.jp&quot;;
int lenghth = 0;//文字列の長さ
char *p = nullptr;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 23 Oct 2022 06:44:16 +0000</pubDate>
        </item>
        <item>
            <title>ポインタについて理解を深めるために演習問題をやるよ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-23-x23&amp;rev=1666507576</link>
            <description>ポインタについて理解を深めるために演習問題をやるよ

問題３

ポインタを使って、文字列を走査し、@以降をどうにかして削除しなさい。


char str1[] = &quot;youetsu@jc-21.jp&quot;;
int lenghth = 0;//文字列の長さ
char *p = nullptr;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 23 Oct 2022 06:46:16 +0000</pubDate>
        </item>
        <item>
            <title>ポインタについて理解を深めるために演習問題をやるよ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-23-x24&amp;rev=1666507720</link>
            <description>ポインタについて理解を深めるために演習問題をやるよ

問題４

bool isIncluded(char str1[], char str2[]);
与えられた文字列str1の中にstr2が含まれていたら、true含まれていなかったらfalse を返す関数を作りなさい。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 23 Oct 2022 06:48:40 +0000</pubDate>
        </item>
        <item>
            <title>ポインタについて理解を深めるために演習問題をやるよ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-23-xx&amp;rev=1666507813</link>
            <description>ポインタについて理解を深めるために演習問題をやるよ

開設長くなりそうなので、ページを分けました。

各ページ下部の戻るボタンから戻って来れます。


 * 演習１　解説ページへ
 * 演習２　問題１　解説ページへ
 * 演習２　問題２　解説ページへ
 * 演習２　問題３　解説ページへ
 * 演習２　問題４　解説ページへ</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 23 Oct 2022 06:50:13 +0000</pubDate>
        </item>
        <item>
            <title>クラスの宣言と初期化</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-26-2&amp;rev=1667977930</link>
            <description>クラスの宣言と初期化

前回以下のようなクラスを作りました。



class cGameChar //クラス　基本的にプライベート 
{
private: //アクセス権
	int hp;
	int mp;
public: //アクセス権
	//setter セッター関数
	void sethp(int _hp); //関数宣言
	void setmp(int _mp);
	//getter　ゲッター関数
	int gethp(){ return(this-&gt;hp); } //インライン定義
	int getmp(){ return(this-&gt;mp); } //インライン定義
};</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 09 Nov 2022 07:12:10 +0000</pubDate>
        </item>
        <item>
            <title>早速習ったクラスとやらをつかってみよう</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:10-26-5&amp;rev=1666764338</link>
            <description>早速習ったクラスとやらをつかってみよう

cGameCharクラスのインスタンスNekoとDragonを作ってください。

メンバは以下の通り！



class cGameChara
{
private:
	std::string m_name;
	int m_HP;
	int m_MP;
	int m_ATK;
public:
        cGameChara();
	cGameChara(std::string _name, int _hp, int _mp, int _atk);
	void setName(std::string _name);
	void setHP(int _hp); 
	void setMP(int _mp); 
	void setATK(int _atk);
	int getHP(); 
	int getMP(); 
	int getATK();
	std::string getName();
};…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Oct 2022 06:05:38 +0000</pubDate>
        </item>
        <item>
            <title>パラメータ表示するやつ作っていきマッスル</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:second-term:10:11-01-xx&amp;rev=1667961136</link>
            <description>パラメータ表示するやつ作っていきマッスル

まず、いつも通りsiv3Dのプロジェクトを作ります。（ここまではいいよね？）


それから、背景画像を用意します。

Siv3Dで表示できる画像形式なら、何でもいいよ。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 09 Nov 2022 02:32:16 +0000</pubDate>
        </item>
    </channel>
</rss>
