小编Ben*_*Cox的帖子

为什么不创建这个对象?C++

这是我的主要内容.我所要做的就是创建一个类文件的对象,这可能是一个非常无聊的问题,很抱歉,只需要知道我做错了什么.

#include <iostream>
#include "Player.h"

using std::cout;
using std::cin;

int main()
{
    cout << "Hello and welcome to the student adventures game.\n";

    Player player1();
}
Run Code Online (Sandbox Code Playgroud)

c++ class object

6
推荐指数
1
解决办法
252
查看次数

标签 统计

c++ ×1

class ×1

object ×1