Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
呃,动态分配内存就行了。。int** LCS; // 开二维数组 LCS = new int*[len1]; for( int i = 0; i < len1; ++ i ) LCS[i] = new int[len2]; // 释放 for( int i = 0; i < len1; ++ i ) delete [] LCS[i]; delete LCS; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator