Sender: Nichloas (NIL), the letter area: CPlusplus Title: [FAQ] 2D array new summary station: BBS Shuimu Tsinghua Station (Sat Jun 7 15:27:42 2003), transfer 1. A (* GA ) [N] = new a [m] [n]; ... delete [] GA; Disadvantages: n must be known to the advantage: call intuitive, continuous storage, simple programming (test, the destructor can be called correctly) 2. a ** Ga = new a * [m]; for (int i = 0; i Ga; Ga.Resize (m); // These three lines can be used For (int i = 1; i
LidaObing | 9 times have been viewed
Comments (0) |
Quote (1)
LidaObing | 9 times have been viewed
Comments (0) |
Quote (1)
Quote:
Http://lidaobing.blogchina.com/ Reference number: 1 (last reference time: 2004-10-14 10: 20)