标准C++的main需要返回值 所以在main前要加int
呵呵,换成我的格式试试看:#include "stdafx.h"#include //加了using namespace std;就可以不要此句#include int main(){ /*...*/ return 0;}