エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Design Patterns and Refactoring
Direct coupling, lots of start-up and shut-down overhead. class Image { int m_id; static int s_ne... Direct coupling, lots of start-up and shut-down overhead. class Image { int m_id; static int s_next; public: Image() { m_id = s_next++; cout << " $$ ctor: " << m_id << '\n'; } ~Image() { cout << " dtor: " << m_id << '\n'; } void draw() { cout << " drawing image " << m_id << '\n'; } }; int Image::s_next = 1; int main() { Image images[5]; for (int i; true;) { cout << "Exit[0], Image[1-5]: "; cin >>
2012/07/28 リンク