会c++的进来
2008-01-02 13:16:58
下面的代码有问题吗?and why?
string f() { return "abc"; }
void g() {
string & s = f();
cout << s << endl; // can we still use the "temporary" object?
}
2008-01-02 13:16:58
下面的代码有问题吗?and why?
string f() { return "abc"; }
void g() {
string & s = f();
cout << s << endl; // can we still use the "temporary" object?
}