<?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:5</title>
        <description></description>
        <link>https://www.yz-learning.com/</link>
        <lastBuildDate>Sat, 04 Apr 2026 04:38:03 +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:5:5-10-1&amp;rev=1652327647</link>
            <description>今日の授業まとめ（５月９日）

アルゴリズムってなんだ？


５月９日の授業内容
・アルゴリズムとは
　アルゴリズム＝問題を解くための手順
　プログラム＝機械語の命令群
　みんなのお仕事＝問題が与えられたときにその解法（＝アルゴリズム）をプログラムに落とし込むこと！

・プログラムを作るには
　プログラム＝機械語の命令群　→　人間が直接書くのは厳しい（一部出来る人もいる）
　プログラミング言語＝人間の言葉に近いものでアルゴリズムを記述することができる（プログラムではない）
　プログラミング言語　→（翻訳）→機械語＝プログラム
　プログラミング言語を翻訳するとプログラムになる！
　みんなのお仕事＝問題が与えられたときにその解法（＝アルゴリズム）をプログラムに落とし込むこと！
　　　　　　　＝プログラミング言語でアルゴリズムを記述すること！

・アルゴリズムを考えていくには
　広い意味でのプログラム（≒アルゴリズム）は３つの基本構造で成り立っている
　どんなアルゴリズムでも、分解して細かいところまで見ていけばこの３つの基本構造に帰着する（落とし込むことができる）
　３つの基本構造
　　１．…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:54:07 +0000</pubDate>
        </item>
        <item>
            <title>５月１８日　初めてのソースコード記述（その２）</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:5:5-16-4&amp;rev=1652858295</link>
            <description>５月１８日　初めてのソースコード記述（その２）


// この行はコメントになります
/*
 ここから
 int a;
 ここまではコメントになります
*/
// 今日のお題　世界で一番有名なプログラム
// helloworld.cpp

//表示の魔法を使えるように詠唱
#include &lt;iostream&gt;

//メインプログラムの作成(エントリポイント）
int main()
{
	int height = 3, bottom = 4;
	int area;

	area = (bottom * height) / 2;
	std::cout &lt;&lt; &quot;area = &quot; &lt;&lt; area &lt;&lt; std::endl;
	//std::cout &lt;&lt; &quot;hello, world!&quot; &lt;&lt; std::endl;
	return 0;
}…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 18 May 2022 07:18: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:5:5-19-1&amp;rev=1653283094</link>
            <description>演習問題の模範解答＋α

プロジェクトの作り方

プロジェクトの作り方とかは下のやつであと省略します


	*  VS起動
	*  新しいプロジェクト
	*  空のプロジェクト（プロジェクト名を付ける：全角はやめようね）</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 23 May 2022 05:18:14 +0000</pubDate>
        </item>
        <item>
            <title>if文の演習をします（５月２４日、２５日）</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:5:5-23-1245&amp;rev=1654494471</link>
            <description>if文の演習をします（５月２４日、２５日）

比較演算子

この辺見てね！


第１問

難易度：★☆☆☆☆



//1，2時間目にやった条件分岐を実際に書いてみる
// ⓪ aを宣言（整数）
// ① aを読み込み（整数） std::cin　
// ② a &gt; 5 ?             if(   )～else～
//    Yes: a - 5 を表示   std::cout
//     No: a + 5 を表示   std::cout
// ③ 終了</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 06 Jun 2022 05:47:51 +0000</pubDate>
        </item>
        <item>
            <title>if文の書き方とかいろいろ</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:5:5-25-0&amp;rev=1682672182</link>
            <description>if文の書き方とかいろいろ

プログラムの構成とブロック

順次構造

一番初めにやったやつ。いうまでもなく処理が１直線に上から下に実行される。

逆に言うと、順次構造で構成されたプログラムは、書いたとおりにしか動かないので、</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 28 Apr 2023 08:56:22 +0000</pubDate>
        </item>
        <item>
            <title>条件式と繰り返し</title>
            <link>https://www.yz-learning.com/doku.php?id=game-engineer:classes:2022:game-programing-1:first-term:5:5-30-1245&amp;rev=1653896561</link>
            <description>条件式と繰り返し

under constructing...


C++ ファイル名のルール

・ファイル名＝名前＋拡張子（.cpp .exe ）
・半角英数字でできていること
・ソースファイルの拡張子は &quot;.cpp&quot;
・ファイル名の初めはアルファベット, _のみ
ex) 03.cpp ダメ
    01source.cpp ダメ
    source03.cpp OK
　　_source.cpp OK
    source_01_03.cpp OK
・使える記号
　半角英数、_、数字

単文
命令;

複文
{
　　命令;
    命令;
    …
}

多重ループ
　ループの中にループがある構造
　（繰り返しの繰り返し）

整数で w, h (wは幅、hは高さ）
キーボードからwとhを入力します（３０以下がいいな）

   &lt;--- w個 ---&gt; 
   *************⏎
   *************⏎
   *************⏎ h
   *************⏎
   *************⏎
   *************⏎　


wを…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 30 May 2022 07:42:41 +0000</pubDate>
        </item>
    </channel>
</rss>
