c 就是源文件 .h头文件
头文件是定义一些函数供我们调用的
如printf函数就定义在stdio.h中
用tc编译的话 常见错误提示有这些
Ambiguous symbol ''xxx'' 不明确的符号
Divide error 除数太小以至于结果太大
Array bounds missing 丢失数组界限符
Array size toolarge 数组尺寸太大
Call of non-function 调用未定义的函数
Call to function with no prototype 调用函数时没有函数的说明
Cannot modify a const object 不允许修改常量对象
Case outside of switch : 漏掉了case 语句
Case syntax error : Case 语法错误
Code has no effect 代码不可述不可能执行到
Compound statement missing{ 分程序漏掉"{"
Constant expression required 要求常量表达式
Could not find file ''xxx'' 找不到XXX文件
Declaration missing , 说明缺少","
Declaration syntax error 说明中出现语法错误
Default outside of switch Default 出现在switch语句之外
Do statement must have while : Do-while语句中缺少while部分
Expression syntax error 表达式语法错误
File name too long 文件名太长
Function call missing ) 函数调用缺少右括号
Fuction should return a value 函数必需返回一个值
Illegal character ''x'' 非法字符x
Irreducible expression tree 无法执行的表达式运算
Mismatched number of parameters in definition 定义中参数个数不匹配
No declaration for function ''xxx'' 没有函数xxx的说明
Not an allowed type 不允许使用的类型
Numeric constant too large 常数数值太大
Parameter ''xxx'' is never used 参数xxx没有用到
Pointer required on left side of -> : 符号->的左边必须是指针
Possible use of ''xxx'' before definition 在定义之前就使用了xxx(警告)
Possibly incorrect assignment 赋值可能不正确
Redeclaration of ''xxx'' 重复定义了xxx
Statement missing , 语句后缺少","
Type mismatch in parameter xxx 参数xxx类型不匹配
''xxx'' not an argument :xxx 不是参数
''xxx'' not part of structure : xxx不是结构体的一部分
xxx statement missing ( : xxx语句缺少左括号
xxx statement missing ) : xxx语句缺少右括号
xxx statement missing , : xxx缺少分号
xxx'' declared but never used 说明了xxx但没有使用
xxx'' is assigned a value which is never used 给xxx赋了值但未用过
Zero length structure 结构体的长度为零
有些人称c语言为中级语言 就是说介于高级语言于低级语言之间
所以它具有高级语言的特性又有低级语言的特性
高级语言的特点简单来说就是人性化
而低级语言特点就是灵活
灵活就是能编的范围比较广
但是没有高级语言用起来那么方便
◆◆
评论读取中....
请登录后再发表评论!
◆◆
修改失败,请稍后尝试