- 81 名前:70 mailto:sage [2009/05/06(水) 21:00:59 ]
- public:忘れてました、すみません。 最終的に
//------------------- class AA { int a1[10]; }; //------------------- class BB { public: AA **app; void setapp(int no) { app = new AA*[no]; //<-ここが不明 } }; //------------------- int _tmain(int argc, _TCHAR* argv[]) { BB dat; dat.setapp(3); dat.app[0] = new AA(); dat.app[1] = new AA(); dat.app[2] = new AA(); } こんな感じでうまくいったのですが、本当にこのままでいいのだろうかという疑問が・・・
|

|