有如下程序:
#include
#include
using namespace std;
class MyString{
public:
char str[80];
MyString(const char*s) {strcpy(str, s);}
MyString&operator+=(MyString a){
strcat(str, a.str);
return*this;
}
};
ostream&operator<<(ostream&s, const MyString&z){return s< int main( ){ MyString x("abc"), y("cde"); cout<<(x+=y)< return 0; } 运行这个程序的输出结果是__________
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服