经典报错bug

来源:互联网 发布:js ios 时间戳格式化 编辑:程序博客网 时间:2024/04/30 05:49

C语言:
1,报错:warning-implicit-declaration-of-function
原因:函数定义了,忘记在main之前声明

2,报错:warning: suggest parentheses around assignment used as truth value?
原因:判断语句中应该写 a == b,我写成 a = b

3,报错:error: conflicting types for ‘function‘
原因:函数的定义和声明不一致

0 0