illegal use of this type as an expression是什么意思?
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/20 16:07:14
![illegal use of this type as an expression是什么意思?](/uploads/image/z/8001974-38-4.jpg?t=illegal+use+of+this+type+as+an+expression%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%3F)
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了.
这种表达方式是违法的