C:\Documents and Settings\yc\桌面\新建文件夹\123\123.cpp(34) : error C2660: 'main' : function does not take 0 parameters
C:\Documents and Settings\yc\桌面\新建文件夹\123\123.cpp(35) : error C2143: syntax error : missing ';' before '{'
Error executing cl.exe.
能给我解释一下这是出现什么问题了吗?怎么解决呢?谢谢
C:\Documents and Settings\yc\桌面\新建文件夹\123\123.cpp(35) : error C2143: syntax error : missing ';' before '{'
Error executing cl.exe.
能给我解释一下这是出现什么问题了吗?怎么解决呢?谢谢
2,少写了一个分号或一个大括号,仔细检查一下.
C2661: '<Class-Name>::<Function-Name>' : no overloaded function takes n parameters This error indicates a mismatch between the parameters used in a function call (e.g., from main.cpp) and the declaration of the function. The function call is passing n parameters and there is no function declaration that uses that number of parameters.
第二个错误应该是少了“}”