字符串赋值方式

来源:互联网 发布:国际数据调研公司 编辑:程序博客网 时间:2024/05/29 16:22
stringstr;
str[0] ='1';
是错的

改成
stringstr;
str +='1';
或者
stringstr;
str +="1";
0 0