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:发现要输入多行数据。。。请问一下怎么弄?教一下!~

Posted by zuqiuxiaozi0402 at 2009-08-19 20:00:00 on Problem 2538
In Reply To:发现要输入多行数据。。。请问一下怎么弄?教一下!~ Posted by:121503182 at 2009-07-16 11:14:17
#include<string>

string p;

while(getline(cin,p))

这样就可以了

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