请问怎样给一个全局的数组变量附值?
float a1[11];
在函数中这样附值: a1[]={1.0f,1.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,-5.0f,0.0f,0.0f,0.0f};
错误信息:
Compiling...
hwb.cpp
F:\3d\1\hwb.cpp(355) : error C2059: syntax error : ']'
F:\3d\1\hwb.cpp(355) : error C2143: syntax error : missing ';' before '{'
F:\3d\1\hwb.cpp(355) : error C2143: syntax error : missing ';' before '}'
Error executing cl.exe.