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 |
scanf("%c",...)是会读入换行符和空格的,所以,要加\n,把行未的换行符吃掉In Reply To:呵呵 我知道不会是scanf的问题。为什么要这样呢, 一直不太用scanf的, Posted by:first at 2006-04-13 11:39:01 建议用scanf("%s", ...)然后取输入字符串的第一个字符,这个会把空格换行自动吃掉 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator