2018年6月27日

error C2275: 'SOCKET' : illegal use of this type as an expression

摘要: 在VC中编译xxx.c文件出现错误error C2275 illegal use of this type as an expression 问题在于C99之前要求所有的声明必须放在函数块的起始部分,这也是C和C++的重要区别。 方法: 1). 修改成xxx.cpp 。 2). 把声明放在函数起始部 阅读全文

posted @ 2018-06-27 14:37 我来乔23 阅读(548) 评论(0) 推荐(0) 编辑

导航