这段代码有错吗?
#include "stdafx.h"
#include "windows.h"
enum ManageType {INSERT, DELETE, UPDATE, GET};
int main(int argc, char* argv[])
{
printf("Hello World!/n");
return 0;
}
有啊,编译一下看看吧
D:/VCTEST/enum/enum.cpp(6) : error C2059: syntax error : '('
D:/VCTEST/enum/enum.cpp(6) : error C2143: syntax error : missing ';' before '}'
D:/VCTEST/enum/enum.cpp(6) : error C2143: syntax error : missing ';' before '}'
博客展示了一段C语言代码,包含枚举类型定义和主函数,代码中存在编译错误,如语法错误、缺少分号等,通过编译给出了具体错误位置和类型。
548

被折叠的 条评论
为什么被折叠?



