Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

呃,动态分配内存就行了。。

Posted by 090609103 at 2011-04-25 22:28:57 on Problem 1458
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator