2009-03-10から1日間の記事一覧

オブジェクトの宣言

C++

Foo* foo = new Foo; Foo* foo = new Foo(); これはどちらも同じ意味。 Foo foo; Foo foo(); これは違う意味。こゆのはなんなんだろなーと思う。