OpenWatcom C++at TECHOpenWatcom C++ - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト754:デフォルトの名無しさん 13/07/26 NY:AN:NY.AN .net nonnum "^" 755:デフォルトの名無しさん 13/10/05 18:40:23.90 .net 確信 756:デフォルトの名無しさん 13/10/17 18:22:02.26 .net エディタでソースの日本語表示ってフォントを変えれば出来るんだな、つかフォントの変え方が独特すぎる 757:デフォルトの名無しさん 13/10/21 23:27:02.65 .net #include <iostream> class StaticInteger { int data; int *pointer; public: StaticInteger(int *p, int d) { pointer = p; data = d; } int acquire() const { return data; } void revise(int *p, int d) { if(p == pointer) data = d; } } *static_integer; void function() { using namespace std; cout << static_integer->acquire() << endl; } static int static_int; int main(void) { StaticInteger si(&static_int, 2345); static_integer = &si; function(); static_integer->revise(&static_int, 8765); function(); return 0; } 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch