mallocはCの機能だろ
C++はnew