各位大大,小白我用VS2010写C语言怎么总报错
我在学习C语言,之前用VS2010学习的C#,所以现在想继续用VS学C语言,可刚写个For循环怎么就总报错,还请各位大大不吝指点!#include<stdio.h>
void main()
{
for(int i=0;i<8;i++)
{
printf("%d",i);
}
}
这怎么就会报错呢
错误 8 error C2059: 语法错误:“)” c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
错误 5 error C2065: “i”: 未声明的标识符 c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
错误 7 error C2065: “i”: 未声明的标识符 c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
错误 10 error C2065: “i”: 未声明的标识符 c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 6 1 CalcForC
错误 13 error C2065: “i”: 未声明的标识符 c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\calc.c 82 1 CalcForC
错误 14 error C2065: “i”: 未声明的标识符 c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\calc.c 82 1 CalcForC
错误 15 error C2065: “i”: 未声明的标识符 c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\calc.c 82 1 CalcForC
错误 3 error C2143: 语法错误 : 缺少“)”(在“类型”的前面) c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
错误 9 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 5 1 CalcForC
错误 1 error C2143: 语法错误 : 缺少“;”(在“类型”的前面) c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
错误 2 error C2143: 语法错误 : 缺少“;”(在“类型”的前面) c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
错误 4 error C2143: 语法错误 : 缺少“;”(在“类型”的前面) c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
错误 12 error C2143: 语法错误 : 缺少“;”(在“类型”的前面) c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\calc.c 81 1 CalcForC
警告 6 warning C4552: “<”: 运算符不起任何作用;应输入带副作用的运算符 c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\protect.c 4 1 CalcForC
警告 11 warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\users\administrator\documents\visual studio 2010\projects\calcforc\calcforc\calc.c 80 1 CalcForC