1error C2065:'xxx':undeclared identifier
xxx标识符没定义。标识符可能是变量名,函数名等等。注意检查拼写,注意大小写。注意小写字母l和数字1的区别。
检查变量的定义和使用是否一致。
变量定义语句:在函数最前面,以变量类型开始,以分号分隔的几个变量名,如int a,b;注意一个变量定义语句只能写一个变量类型。
2error C2146:syntax error:missing';'before identifier'xxx'
语句末尾缺少分号,一般是错误定位所在行的上一行。
3error LNK2001:unresolved external symbol_main 没有main函数。检查拼写,看是否把main写成了mian。4fatal error C1021:invalid preprocessor command 'includ'
预处理指令拼写错误。
5fatal error C1083:Cannot open include file:
'stio.h':No such file or directory
包含文件名写错了。文件名中间不能有空格。