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

把ignore放到循环外面

Posted by hawk at 2005-04-20 22:37:30 on Problem 2105
In Reply To:Re:why cin.ignore? Posted by:00448144 at 2005-04-20 22:34:13
循环里面是用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