illegal use of this type as an expression是什么意思?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/19 04:02:13

illegal use of this type as an expression是什么意思?
illegal use of this type as an expression是什么意思?

illegal use of this type as an expression是什么意思?
不应该啊,SOCKET 有定义的,你关了工程,在打开编译试试.实在不行,就用int 代替.也可以.
后面的
error C2146:syntax error :missing ';' before identifier 'TCPSocket'
:warning C4013:'TCPSocket' undefined; assuming extern returning int
是因为第一个问题出现才出现的,把SOCKET 改为
int就OK了.

这种表达方式是违法的