这个运行结果该怎么解释?
就是这个程序#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
s="c++ is great fun"+'\n';
cout<<s<<endl;
return 0;
}
运行结果 却是 at fun
哪位高手解释下?
2009-12-22 21:20
2009-12-22 23:58
2009-12-23 09:27
2009-12-23 10:31
s="c++ is great fun";
s.append("\n");
2009-12-23 14:19
2009-12-23 18:18
2009-12-23 19:44
string 还有这样儿的用法呢,学习了!
2009-12-23 20:59
2009-12-25 10:43

2009-12-25 10:48