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

scanf("%c",...)是会读入换行符和空格的,所以,要加\n,把行未的换行符吃掉

Posted by number at 2006-04-13 11:42:34 on Problem 1158
In Reply To:呵呵 我知道不会是scanf的问题。为什么要这样呢, 一直不太用scanf的, Posted by:first at 2006-04-13 11:39:01
建议用scanf("%s", ...)然后取输入字符串的第一个字符,这个会把空格换行自动吃掉

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