class Ptr {
:
:
};
:
:
Ptr* matrix[ROWS][COLS];
回到原題, 使用動態配置, 是不是該改成...
Ptr* **matrix;
:
matrix=new Ptr**[n]; // n為執行時期輸入
for (i=0; i<n; i++) matrix[i]=new Ptr*[n];
Thank you all!
--
╒══════╒══── ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ Graduate
╒╧══════ │ ﹏﹏ ─── ̄ ̄ Institute
│★ │ ﹏﹏ ── ̄ ̄ of
╭╯ ╭----- │ M.I.S.
│ ||Falcon/笨鳥 ───┘ NYUst
◤ ∟═╩═══ E-mail: gmi...@mis.yuntech.edu.tw
--
[m● Origin : 雲林科技大學藍天使 <bbs.yuntech.edu.tw> [FROM: 140.125.81.83]