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:用getchar()过滤回车符的请注意,n,m后面可能有多个空格!FT!

Posted by zjnu09220233 at 2010-10-14 12:29:22 on Problem 1562
In Reply To:Re:用getchar()过滤回车符的请注意,n,m后面可能有多个空格!FT! Posted by:JustForU at 2010-10-08 14:53:32
有同感!!!!!!!!!!!!
挺!!!!!!!!!!!!!!
  for(i=1;i<=n;i++){
        for(j=1;j<=m;j++){
            while(c=getchar(),c!='*'&&c!='@');
            map[i][j]=c;
            }
        }

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