ゲームが作れるようになるまでがんばる日記

ゲーム制作のことを中心にゲームに関することを書いています

2008-11-07から1日間の記事一覧

フレンド関数その2

引き続き本を読みながら勉強。3ページ。 #include <iostream> using namespace std; class TestB; class TestA { private: int m_value; public: TestA(int num) { m_value = num; } friend void func(TestA a, TestB b); }; class TestB { private: int m_value; publ</iostream>…