<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.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:8</title>
        <description></description>
        <link>https://wiki.yz-learning.com/</link>
        <lastBuildDate>Sat, 04 Apr 2026 16:17:24 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.yz-learning.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>Yz-Learning Base Wiki</title>
            <link>https://wiki.yz-learning.com/</link>
        </image>
        <item>
            <title>関数を使った値のスワップ（交換）できるかな？</title>
            <link>https://wiki.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:8:8-26-3&amp;rev=1661486356</link>
            <description>関数を使った値のスワップ（交換）できるかな？


#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) //_a,_b 仮引数
{
	double tmp;
	tmp = _a; //tmpにaを保存 tmp:1.2  _a:1.2  _b:200.5
	_a = _b; //_aに_bを代入  tmp:1.2  _a:200.5  _b:200.5
	_b = tmp; //保存しておいた_aを_bに代入 tmp:1.2  _a:200.5  _b:1…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 26 Aug 2022 03:59:16 +0000</pubDate>
        </item>
        <item>
            <title>アソパソマソを動かそう（理想形）</title>
            <link>https://wiki.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:8:8-29-1245&amp;rev=1664962413</link>
            <description>アソパソマソを動かそう（理想形）

[Windows 64bit アンパンマン理想形（プログラムダウンロード）]

３種類の遅いソートアルゴリズムを可視化してみよう

長方形を描く

キー入力



//スペースキーを押して、放した瞬間をキャッチしたら
if(KeySpace.up())
{
    //スペースキーが押された時の処理を描く
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 05 Oct 2022 09:33:33 +0000</pubDate>
        </item>
        <item>
            <title>ハッシュ法</title>
            <link>https://wiki.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:8:8-30-2&amp;rev=1661930818</link>
            <description>ハッシュ法

ハッシュ関数　$ H(x) $　には


	*  単純なこと
	*  用意している配列の要素数以下を返すこと
	*  なるべく一様に結果を返す（かぶりが少ないこと）

が要求されます。が、要求されるだけで確実に満たすものを作るのは困難です。$ H(x) = x \space Mod \space 25 $$ H(x) = x \space Mod \space 8 $$ H(x) $$ H(x) $$$
\begin{array}{lll}
データ値&amp; 26 の時&amp;： H(26) = 26 \space Mod \space 8 = 2　&amp;  dat[2] = 26\\
データ値&amp; 53 の時&amp;： H(53) = 53 \space Mod \space 8 = 5　&amp;  dat[5] = 53\\
データ値&amp; 59 の時&amp;： H(59) = 59 \space Mod \space 8 = 3 　&amp;  dat[3] = 59\\
データ値&amp; 84 の時&amp;： H(84) = 84 \space Mod \space 8 = 4 　&amp;  dat[4] = 84\\
データ値…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 31 Aug 2022 07:26:58 +0000</pubDate>
        </item>
    </channel>
</rss>
