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

不是错在这里,while(scanf("%s %s", str1, str2))错了

Posted by xfxyjwf at 2007-11-19 18:23:09 on Problem 1458
In Reply To:scanf中间不要有空格 Posted by:liuweni at 2007-11-19 17:21:50
应该是while (scanf("%s %s", str1, str2) != EOF)
> scanf("%s%s",str1,str2);

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