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 |
也验证了我的想法In Reply To:Re:我觉得没什么烦得,它就是把换行当成普通字符了 Posted by:xfxyjwf at 2005-05-28 12:54:59 试了一下,是 abc bcd > 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