C++报错error C2078:too many initializerschar *name = {"linda","lelele","linlin"};就这句话,要怎么改.
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/25 15:38:51
x)s~ֵ唙EEE
FV%
y
y%9UEE
Zy
J9y)J:J9 bdR
_su^,k|dgdz);lIhkح_`g3ʽly6ٌ}f-ϦnxEYgÓK_k
Ovzֽiv'yYhK(<@ '
C++报错error C2078:too many initializerschar *name = {"linda","lelele","linlin"};就这句话,要怎么改.
C++报错error C2078:too many initializers
char *name = {"linda","lelele","linlin"};
就这句话,要怎么改.
C++报错error C2078:too many initializerschar *name = {"linda","lelele","linlin"};就这句话,要怎么改.
这里明显是二维数组,所以还要加一个括号
修改如:
char *name[] = {"linda","lelele","linlin"};