我正在研究一个学校项目,我遇到两个错误,我不知道如何修复它们,任何想法?

时间:2015-11-02 18:17:50

标签: c++

错误1错误C2628:'问题'其次是' int'是非法的(你忘记了&#39 ;;'?)

错误2错误C2447:' {' :缺少函数头(旧式正式列表?)

/*
The Great Quiz Show Game

by

Seth Alpha
*/

#include <iostream>
#include <string>

using namespace std;

class question

int main();
{
cout << "***********************" << endl;
cout << "*                     *" << endl;
cout << "* The Great Quiz Show *" << endl;
cout << "*                     *" << endl;
cout << "*         by          *" << endl;
cout << "*                     *" << endl;
cout << "*      Seth A----     *" << endl;
cout << "*                     *" << endl;
cout << "***********************" << endl;
cout << endl;
}

提前感谢您提供任何帮助! :)

1 个答案:

答案 0 :(得分:1)

int main(); should be int main() {

P.S。除非您要声明字符串变量,否则不需要包含字符串库