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

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

2009-07-28から1日間の記事一覧

auto_ptr

C++

標準ライブラリにauto_ptrというのがあるのは知っていたか、どう使うのか分からなかったので試してみた。 #include <iostream> #include <memory> using namespace std; class Test { public: Test() { cout << "Test Constructor" << endl; } ~Test() { cout << "Test Destruc</memory></iostream>…