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

Re:RE了好多次

Posted by alpc52 at 2008-04-19 21:09:16 on Problem 3342
In Reply To:RE了好多次 Posted by:nkzgm at 2007-09-09 09:29:15
> 
> 用这个就AC
> strcpy(s[k],s2);
> 
> 用这个就RE
> for(r=0;r<int(strlen(s2));r++)
>   s[k][r]=s2[r];
> 
> 不明白为什么?

第二个中没有把s2的字符串结束标记'\0'复制给s[k]

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