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

哦 谢谢,没注意这个问题 sigh 基本功太差了

Posted by xiaxia at 2006-04-09 16:36:08 on Problem 1298
In Reply To:仔细看看>>和getline以及ignore的说明吧 Posted by:hawk at 2006-04-09 16:34:18
> 比如说第一个是空,因为上一个cin>>之后,没吃掉那个回车
> 这个时候geline当然是空
> 而getline本身是吃掉回车的
> 一般来说,如果全是getline那么没问题,如果和cin>>混用,要注意及时吃掉回车。

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