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:为什么在ZJU能过,在PKU过不了??

Posted by wrong123 at 2006-01-08 19:38:58 on Problem 1111
In Reply To:Re:为什么在ZJU能过,在PKU过不了?? Posted by:wrong123 at 2006-01-08 19:34:02
> 使用这样的读入字符串:for(i=0;i<row;i++) scanf("%s",image[i]);
> 
> 你字符数组就开了20个长度, 能读到最后一个i = 20的么? 

把字符数组的第二维 长度 + 1

char image[20][21];

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