Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:我觉得没什么烦得,它就是把换行当成普通字符了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator