[黑板] C++ 宣告動態結構的方式 - NEW @ 翠西亞的風乾角落 :: 痞客邦 PIXNET ::
在 C++ 中,我們用 new 取代了 malloc 的功能: 語法: p_var = new typename; Typename can be any basic data type or user-defined object (enum, class,and structincluded). If typename is of class type, the default constructor is called to construct the object....