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.
能给我解释一下这是出现什么问题了吗?怎么解决呢?谢谢

解决方案 »

  1.   

    1,main函数需要参数,不知道怎么写的话,随便找本书抄上,或百度一下.
    2,少写了一个分号或一个大括号,仔细检查一下.
      

  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.
    第二个错误应该是少了“}”