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

Re:getline的问题

Posted by frkstyc at 2005-05-09 20:04:35
In Reply To:getline的问题 Posted by:poochie at 2005-05-09 19:44:13
这种问题应该自己查书,简单来说就是getline没把最后的'\n'吃掉

> string a;
> getline(cin,a);
> cout<<a;
> 为什么用两个回车才能输出阿

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