小编Jam*_*mes的帖子

对'Class :: Class'的未定义引用

解决了上一个问题后(请参阅我提出的另一个问题).我宣布了更多课程.

其中一个名为CombatAdmin,它可以执行各种操作:(头文件)

#ifndef COMBATADMIN_H
#define COMBATADMIN_H

#include <string> // Need this line or it complains
#include <Player.h>
#include <Sound.h>
#include <Enemy.h>
#include <Narrator.h>
using namespace std;

class Enemy;
class Player;

class CombatAdmin // Code yet to be commented here, will come soon.
{
    public:
        CombatAdmin();
        void healthSet(double newHealth, string playerName);
        void comAdSay(string sayWhat);
        void playerFindsChest(Player *player,Weapon *weapon,Armour *armour);
        void youStoleOurStuffEncounter(Player *player);
        void comAdWarning(string enemyName);
        void comAdAtkNote(string attack, double damage,string target,string aggresor);
        void entDefeated(string entName);
        void comAdStateEntHp(string ent, double hp);
        void …
Run Code Online (Sandbox Code Playgroud)

c++ reference codeblocks undefined

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

标签 统计

c++ ×1

codeblocks ×1

reference ×1

undefined ×1