double p[tap]={0.482962913145,0.836516303738,0.224143868042,-0.129409522551};错误提示;
E: \VC\Jointlena\JointDlg.cpp (2320) : error C2143: Syntax error : ']' ';' It is required in front. 中括号前要分号?
E: \VC\Jointlena\JointDlg.cpp (2320) : error C2143: Syntax error : ']' ';' It is required in front. 中括号前要分号?
應該用p[4]或者用new 分配
或者const int tap=4;
double p[]={0.482962913145,0.836516303738,0.224143868042,-0.129409522551};
或
double p[tap];//tap为常量表达式
或
double p[tap]={0.482962913145,0.836516303738,0.224143868042,-0.129409522551};//一定tap>=4