2011-09-05から1日間の記事一覧
#include <iostream> #include <string> class Test { public: Test(std::string str) : mStr(str) { std::cout << mStr << " create." << std::endl; } ~Test() { std::cout << mStr << " delete." << std::endl; } private: std::string mStr; }; Test test1("test1"); int m</string></iostream>…