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

我觉得没什么烦得,它就是把换行当成普通字符了

Posted by hawk at 2005-05-28 12:44:23 on Problem 1107
In Reply To:真要说的的话肯定要跑到<string>里面去的,我跟进去过一回,要两个回车的过程一两句话说不明白的 Posted by:00448264 at 2005-05-28 12:35:41
不指定分隔符的时候,默认就是换行'\n'
第一个换行被当作普通字符读进去了,第二个换行才相当于通知了程序,可以响应输入了。
这是我刚才看了一下msdn的理解

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