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 xiaoxiao at 2004-03-27 16:37:20 on Problem 1094
In Reply To:问题解决了 Posted by:xiaomi at 2003-07-21 00:26:19
> 用string代替char数组,问题解决
> 不过还有哦,做这个题用静态数组30k,new delete分配内存800多k是什么原因?
    judge()之中的指针int **d,应该如下delete:

for(i=0; i<n; i++) delete [] d[i];
delete d;

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