c++ 字符数组赋值
1. char a[10]="hello"; //正确
2. char a[10]; a[10]="hello"; //错误
3. char a[10]={'h','e','l','l','o'}; //正确
4. char a[10]; a="hello"; //错误
c++ 字符数组赋值
猜你喜欢
转载自blog.csdn.net/weixin_41900808/article/details/82839700
今日推荐
周排行