本站网址: YippeeSoft开心软件
0419 Compiler Error C2275
Compiler Error C2275
\’identifier\’ : illegal use of this type as an expression
The expression used the class member access operator (->) on the specified typedef identifier.
The following is an example of this error:
typedef struct S
&leftsign;
int mem;
&rightsign; *S_t;
void func1( int *parm );
void func2()
&leftsign;
func1( &S_t->mem ); // error: S_t is a typedef
&rightsign;
稀里糊涂了,非常简单的代码
***************************************************************************/
typedef struct
&leftsign;
long l;
int i;
&rightsign;TTT;
void ss()
&leftsign;
int i=1;
Sleep(10);
TTT t;
t.i=i;
&rightsign;
error C2275: \’TTT\’ : illegal use of this type as an expression
see declaration of \’TTT\’
error C2146: syntax error : missing \’;\’ before identifier \’t\’
error C2065: \’t\’ : undeclared identifier
error C2224: left of \’.i\’ must have struct/union type
倒腾半天,想起来了,这是 .C 文件
晕倒
人真是不能生病啊,否则晕头转向的
受不了~~~~~
typedef struct
&leftsign;
long l;
int i;
&rightsign;TTT;
void ss()
&leftsign;
int i=1;
TTT t;
Sleep(10);
t.i=i;
&rightsign;
原创文章,转载请注明: 转载自YippeeSoft开心软件
本文链接地址: 0419 Compiler Error C2275
历史博文
- wpf显示GIF - 2009
- 蜘蛛屏蔽 - 2009
- 20071205 VTTray.exe 1433 - 2008
- 20070417 cmcc wlan kav kis - 2007
- 互联网电子公告服务管理规定 - 2005
- linux 安装 MYSQL 2 - 2005
- W32.TOXBOT NETDDESRV - 2005
评论