illegal use of this type as an expression
来源:互联网 发布:阿里云菜鸟建站 编辑:程序博客网 时间:2024/04/27 18:04
好久没写C代码了,今天修改了一个.C文件的代码,就出现了很多类似于“long”illegal use of this type as an expression
还有在类似于unsigned long lStatus = 0x00;这样的代码上提示error C2143: syntax error : missing ';' before 'type'。当时第一反应是:是不是什么隐藏字符导致的,后来证实不是之后就自言自语”编译器是傻了吗“
后来突然才想起来,C89是需要局部变量在函数开头申明的(那个年代比较不智能),但是C99以后以及C++就支持在使用变量前随申明随用了,特此记录
0 0
- illegal use of this type as an expression 解决方案
- error C2275! illegal use of this type as an expression
- 'PIO_STACK_LOCATION' : illegal use of this type as an expression
- illegal use of this type as an expression
- illegal use of this type as an expression
- C2275 illegal use of this type as an expression
- illegal use of this type as an expression see declaration of 'STACK'
- 编译选项引发的ERROR C2275:illegal use of this type as an expression
- 'FILE' : illegal use of this type as an expression编译错误的解决
- illegal use of this type as an expression错误出现的原因
- error C2275: 'FILE' : illegal use of this type as an expression
- error C2275: 'xxx' : illegal use of this type as an expression
- error C2275: 'FILE' : illegal use of this type as an expression
- error C2275 illegal use of this type as an expression 解决方法
- [C/C++]illegal use of this type as an expression报错的原因
- C语言编程调试:illegal use of this type as an expression错误解决办法
- error C2275: ‘XXX’ : illegal use of this type as an expression 报错的解决方法!
- error C2275: 'time_t' : illegal use of this type as an expression
- 程序员是否应该注重文档的编写?
- PLSQL Developer 9.0注册码
- UNIX Domain Socket IPC (sockaddr_un )
- BroadcastReceiver监测网络连接的改变
- 求大神教我app开发制作
- illegal use of this type as an expression
- hd1028Ignatius and the Princess III【母函数】
- node.js进行debug调试模式
- quick-cocos2d-x游戏开发【4】——添加文本
- POJ 3254 Corn Fields 状态压缩
- 深入Struts2的配置文件
- 为什么程序员需要关心顺序一致性(Sequential Consistency)而不是Cache一致性(Cache Coherence?)
- 程序打补丁以及在shell里面写c代码
- Python字符串操作和string模块代码分析