#include #include #include #include #include #include "config.h" using namespace std; // 定番のこんにちは世界 class HelloApp : public wxApp { public: bool OnInit(); }; IMPLEMENT_APP(HelloApp) bool HelloApp::OnInit() { std::vector intVec; // intの vector を宣言 intVec.push_back(10); // いくつかの値を追加 intVec.push_back(20); intVec.push_back(30); std::copy(intVec.begin(), intVec.end(), std::ostream_iterator(std::cout, " ")); std::cout << std::endl; //ここから始まる wxFrame *frame = new wxFrame((wxFrame*)NULL, -1, "Hello World !!"); frame->Show(true); //フレームの表示 SetTopWindow(frame); //トップウィンドウに設定 return true; }