求助 c语言结构体赋值 编译报错 syntax error : '{'
如题, 结构体赋值的程序如下,编译的时候提示对con[24]赋值的句子出错 syntax error : '{' 求大神帮助修改int main()
{
struct convert
{double C[3][3];};
struct convert con[24]={{1,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0},{0.0,0.0,-1.0,0.0,-1.0,0.0,-1.0,0.0,0.0},{0.0,0.0,-1.0,0.0,1.0,0.0,1.0,0.0,0.0},{-1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,-1.0},{0.0,0.0,1.0,0.0,1.0,0.0,-1.0,0.0,0.0},{1.0,0.0,0.0,0.0,0.0,-1.0,0.0,1.0,0.0}{1.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,-1.0}{1.0,0.0,0.0,0.0,0.0,1.0,0.0,-1.0,0.0},{0.0,-1.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0},{-1.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,1.0},{0.0,1.0,0.0,-1.0,0.0,0.0,0.0,0.0,1.0},{0.0,0.0,1.0,1.0,0.0,0.0,0.0,1.0,0.0},{0.0,1.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0},{0.0,0.0,-1.0,-1.0,0.0,0.0,0.0,1.0,0.0},{0.0,-1.0,0.0,0.0,0.0,1.0,-1.0,0.0,0.0},{0.0,1.0,0.0,0.0,0.0,-1.0,-1.0,0.0,0.0},{0.0,0.0,-1.0,1.0,0.0,0.0,0.0,-1.0,0.0},{0.0,0.0,1.0,-1.0,0.0,0.0,0.0,-1.0,0.0},{0.0,-1.0,0.0,0.0,0.0,-1.0,1.0,0.0,0.0},{0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,-1.0},{-1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,0.0},{0.0,0.0,1.0,0.0,-1.0,0.0,1.0,0.0,0.0},{0.0,-1.0,0.0,-1.0,0.0,0.0,0.0,0.0,-1.0},{-1.0,0.0,0.0,0.0,0.0,-1.0,0.0,-1.0,0.0}};
return 0;
}