C++报错error C2078:too many initializerschar *name = {"linda","lelele","linlin"};就这句话,要怎么改.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 20:20:05
C++报错errorC2078:toomanyinitializerschar*name={"linda","lelele","linlin"};就这句话,要怎么改.C++报错errorC2078:t
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"};