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 xfxyjwf at 2005-05-28 12:54:59 on Problem 1107
In Reply To:我觉得没什么烦得,它就是把换行当成普通字符了 Posted by:hawk at 2005-05-28 12:44:23
string str1,str2;
getline(cin,str1);
getline(cin,str2);
cout << str1 << "\n"
     << str2 << endl;
//如果我输入一个字符串,回车,再一个字符串,回车,再一个字符串,回车.
//结果会输出什么呢?
//譬如输入:
abc
bcd
cde

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