<?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:first-term:7</title>
        <description></description>
        <link>https://www.yz-learning.com/</link>
        <lastBuildDate>Sat, 04 Apr 2026 04:37:11 +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:first-term:7:7-11-45&amp;rev=1657524855</link>
            <description>練習問題⒮


練習問題(プロジェクト３個追加、mainに全部書いてもいいよ)
①入力された２つの文字列を連結して返す関数を作りなさい！
プロトタイプ宣言、定義を書いて、mainで実際に使てみて動作確認！

戻り値は？　concatenate(文字列１、文字列２)
{
	処理内容;
	return(なにかえす？);
}

②底辺と高さを入力して、三角形の面積を返す関数
上と同じだけど、全部考えてみて！

③金額を引数にとり、金種表を出力する関数
例)denominations(1353);

10000円　札：0
 5000円　札：0
 1000円　札：1
  500円硬貨：0
　100円硬貨：3
   50円硬貨：1
   10円硬貨：0
    5円硬貨：0
    1円硬貨：3…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 11 Jul 2022 07:34:15 +0000</pubDate>
        </item>
        <item>
            <title>久々のアルゴリズム</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:7:7-13-45&amp;rev=1657691373</link>
            <description>久々のアルゴリズム


・久々のアルゴリズム
　・探索アルゴリズム
　　配列の中にある目的のデータを探します。
　・ソートアルゴリズム
　　配列の中にあるデータを指定されたルールで並べ替えます。
　　・昇順：1 2 3 4 5 大きくなる順
　　・降順：5 4 3 2 1 小さくなる順
　　・辞書順（文字列の時）：辞書に登場する順番
　　　able beetle belt beat ace 辞書順で並べたらどうなる？
　・データ構造
　　プログラム ＝　アルゴリズム　＋　データ構造
　　データの組み立て
　　　・配列：同じデータの並んだもの、番号でアクセスできる
　　　・レコード型（C/C++ 構造体）：いろんな方のデータをパックして名前を付けたもの
                                 ex)　・ゲームキャラ　　   　ゲームキャラ→戦士、魔法使い、ザコ
                                       　　+-&gt; HP(int)　　　 　　戦士-&gt;HP 戦士-&gt;MP 戦士-&gt;強さ　戦士-&gt;素早さ 戦士-&gt;運
         …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 13 Jul 2022 05:49:33 +0000</pubDate>
        </item>
        <item>
            <title>関数の復習</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:7:7-19-5&amp;rev=1658304201</link>
            <description>関数の復習


//関数 sumtoN　1～引数までの和を返す
//引数　１００以下の整数
//戻り値　１～引数までの和
//プロトタイプ宣言
int sumtoN(int _number);

//関数 sumMtoN　引数M～N引数までの和を返す
//              面倒だから必ず M &lt;= Nとします！
//引数1　１００以下の整数
//引数２　１００以下の整数
//戻り値　引数M～引数Nまでの和
//プロトタイプ宣言
int sumMtoN(引数考えてー);

定義はmainの下に書く！…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 Jul 2022 08:03:21 +0000</pubDate>
        </item>
        <item>
            <title>配列の復習</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:7:7-21-1&amp;rev=1658371478</link>
            <description>配列の復習

配列の宣言


型　変数名[要素数] = {初期化列};
// {初期化列}は省略してよいが、その場合は初期値不定になるよ

float farray[5] = {1.0, 2.0 ,3.0 ,4.0, 5.0};



宣言された配列は、メモリ上で必ず連続して並ぶ（変数のアドレスが連続している）</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Jul 2022 02:44:38 +0000</pubDate>
        </item>
        <item>
            <title>関数と値のスワップ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:7:7-22-3&amp;rev=1658909560</link>
            <description>関数と値のスワップ

授業で使ったreplitのソース（実行可能）


#include &lt;iostream&gt;

using std::cout;
using std::cin;
using std::endl;
//２つの値を表示する関数
void printAB(double _a, double _b)
{
	cout &lt;&lt; &quot;(a, b) = (&quot; &lt;&lt; _a &lt;&lt; &quot;, &quot; &lt;&lt; _b &lt;&lt; &quot;)&quot; &lt;&lt; endl;
}
//２つの変数の値を入れ替える関数(交換できない(´;ω;｀))
//changeAB(0.0, 128.7); _a &lt;- 0.0 _b &lt;- 128.7
void changeAB(double _a, double _b)
{
	double tmp;
	tmp = _a; //tmpにaを保存
	_a = _b;
	_b = tmp;
}//&lt;-仮引数_a, _bの生存範囲

//値の交換、参照渡しバージョン　//アドレスの中身を書き換えてね　&amp;
void changeAB_ref(double &amp;_a, double &amp;_b)
{
	double …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 27 Jul 2022 08:12:40 +0000</pubDate>
        </item>
    </channel>
</rss>
