<?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:second-term:11:11-09-1</title>
        <description></description>
        <link>https://www.yz-learning.com/</link>
        <lastBuildDate>Sat, 04 Apr 2026 09:06:41 +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:2021:game-programing-1:second-term:11:11-09-1:kaitou&amp;rev=1652325380</link>
            <description>練習問題１（模範）解答

cVec2.h


#pragma once

//2次元のベクトルを表すcVec2クラスを作る
//プライベートメンバ
//メンバ変数
//実数で(x, y)座標 メンバ変数らしく宣言
//パブリックメンバ：
//コンストラクタを
//引数なし
//x, yを引数でもち、座標を初期化するもの
//メンバ関数（戻り値と引数は考えて）
//セッター、ゲッター
//メンバをプリントする　printVec
//ベクトルのスカラー倍を返す nmulVec関数
//ベクトル同士の足し算を返す　nplusVec関数
//内積を計算して返す　iProduct関数
//ベクトルを座標とみなして2つのベクトルの距離を計算して返すメンバ関数
//引数は、もう一つのベクトル（引数は何型？）、自分の位置と、7
//引数で受け取った位置の距離を返す（型は何が適切？）

class cVec2
{
private:
	float mx, my;
public:
	//コンストラクタ
	cVec2();//引数なし
	cVec2(float _x, float _y);//引数あり
	//…</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:second-term:11:11-09-1:kaitou02&amp;rev=1652325380</link>
            <description>練習問題

問題２

学生を表すクラスの作成

	*  生徒を表すクラス cStudentを作成する
	*  ファイルはcStudent.h cStudent.cpp theMain.cppを作成すること
	*  cStudentクラスには、privateなメンバ変数として名前、身長、体重を登録できるものとする。$h \hspace{0.3em} \mathrm{m}$$w \hspace{0.3em}\mathrm{kg}$$ BMI = w / h^2$</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 12 May 2022 03:16:20 +0000</pubDate>
        </item>
    </channel>
</rss>
