Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:用getchar()过滤回车符的请注意,n,m后面可能有多个空格!FT!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator