使用未定義的class的相關文章
使用未定義的class的相關公司資訊
使用未定義的class的相關商品

c++ class使用上問題 - Yahoo!奇摩知識+
瀏覽:1284
日期:2025-04-28
假設我定義一個class 如下class test{public:test(int num);private:const int data[10];int *people;};test::test(int num):(?????){people = new int[num];}問題來了問題1:如果今天我是這樣使用test *a;a = new test[10](????);我要怎麼讓每個a直都有不同或相同的初始值,因為 ......看更多