我正在做一个学校项目,我遇到了两个错误,我不知道如何纠正它们,任何想法

I am working on a school project and I am getting two errors and I have no idea how to fix them, any ideas?

本文关键字:我不知道 错误 何纠正 任何想 两个 遇到 一个 学校 项目      更新时间:2023-10-16

错误1错误C2628:'question'后面跟着'int'是非法的(您忘记了';'吗?)

错误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;
}

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

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

附言:除非声明字符串变量

,否则不需要包含字符串库
相关文章: