Compiler Error C2720---请高人指点一下.
来源:百度知道 编辑:UC知道 时间:2024/07/02 14:08:09
error C2720: 'trellisBits' : 'static ' storage-class specifier illegal on members
/////////////////////////////////////////////////////////
static int CDib::trellisBits[8][2][4]=
{
0,0,0,0,
0,0,0,1,
0,0,1,0,
0,0,1,1,
0,1,0,0,
0,1,0,1,
0,1,1,0,
0,1,1,1,
1,0,0,0,
1,0,0,1,
1,0,1,0,
1,0,1,1,
1,1,0,0,
1,1,0,1,
1,1,1,0,
1,1,1,1,
};
请教高手解答。。。。急。。。如何修改?!!
他是类里面的那个成员的初始化格式啊。。。不加那个更多错误!
/////////////////////////////////////////////////////////
static int CDib::trellisBits[8][2][4]=
{
0,0,0,0,
0,0,0,1,
0,0,1,0,
0,0,1,1,
0,1,0,0,
0,1,0,1,
0,1,1,0,
0,1,1,1,
1,0,0,0,
1,0,0,1,
1,0,1,0,
1,0,1,1,
1,1,0,0,
1,1,0,1,
1,1,1,0,
1,1,1,1,
};
请教高手解答。。。。急。。。如何修改?!!
他是类里面的那个成员的初始化格式啊。。。不加那个更多错误!
只能这样写:
static CDib dib;
dib.trellisBits[8][2][4]= {......};
如果trellisBits是CDib的static成员,那么这样写:int CDib::trellisBits[8][2][4]= { ...... };
static只用于声明,不用于定义,你这里是定义。
你干嘛要加CDib::,谁教你的
Compiler Error C2720---请高人指点一下.
Compiler Error Message: CS0016: Could not write to output file
fatal error C1189: #error : Compiler version not supported by Windows DDK
Snippet Compiler下载解压以后不能运行
Intel C++ Compiler 9.1谁有注册码
how to install gcc compiler in OpenSuse?
ubuntu7.10中的C compiler 在哪里?
第一个compiler是用什么写的?
synopsys design compiler哪里能下到04或05版本
请问compiler,assembler,linker,builder,debegger,他们之间的关系