הנה הקוד המלא והשגיאות
CSkills.hpp #ifndef _CSkills #define _CSkills #include "Act.hpp" #include "Alchemy.hpp" #include "Appraise.hpp" #include "Arcana.hpp" #include "Architecture_And_Engineering.hpp" #include "Armorsmisthing.hpp" #include "Balance.hpp" #include "Bluff.hpp" #include "Bowmaking.hpp" #include "Climb.hpp" #include "Concentration.hpp" #include "CCrafts.hpp" #include "Decipher_Script.hpp" #include "Diplomacy.hpp" #include "Disable_Device.hpp" #include "Disguise.hpp" #include "Escape_Artist.hpp" #include "Forgery.hpp" #include "Gather_Information.hpp" #include "Geography.hpp" #include "Handle_Animal.hpp" #include "Heal.hpp" #include "Hide.hpp" #include "History.hpp" #include "Intimidate.hpp" #include "Jump.hpp" #include "CKnowledges.hpp" #include "Listen.hpp" #include "Local.hpp" #include "Move_Silently.hpp" #include "Nobility_And_Royalty.hpp" #include "Open_Lock.hpp" #include "Religion.hpp" #include "CPreform.hpp" #include "CProfession.hpp" #include "Ride.hpp" #include "Search.hpp" #include "Sense_Motive.hpp" #include "Sleight_Of_Hands.hpp" #include "Spellcraft.hpp" #include "Spot.hpp" #include "Survival.hpp" #include "Swim.hpp" #include "The_Plains.hpp" #include "Trapmaking.hpp" #include "Tumble.hpp" #include "Use_Magic_Device.hpp" #include "Use_Rope.hpp" #include "Weaponsmithing.hpp" namespace D20Skills { class CSkills { public: D20Act *Act; D20Alchemy *Alchemy; D20Appraise *Appraise; D20Arcana *Arcana; D20Architecture_And_Engineering *Architecture_And_Engineering; D20Armorsmisthing *Armorsmisthing; D20Balance *Balance; D20Bluff *Bluff; D20Bowmaking *Bowmaking; D20Climb *Climb; D20Concentration *Concentration; CCrafts *Craft; // Need to check the existing ... D20Decipher_Script *Decipher_Script; D20Diplomacy *Diplomacy; D20Disable_Device *Disable_Device; D20Disguise *Disguise; D20Escape_Artist *Escape_Artist; D20Forgery *Forgery; D20Gather_Information *Gather_Information; D20Handle_Animal *Handle_Animal; D20Heal *Heal; D20Hide *Hide; D20Intimidate *Intimidate; D20Jump *Jump; D20Listen *Listen; D20Local *Local; D20Move_Silently *Move_Silently; D20Nobility_And_Royalty *Nobility_And_Royalty; D20Open_Lock *Open_Lock; D20Religion Religion; CPreform *Preform; CProfession *Profession; // Need to check the existing ... D20Ride *Ride; D20Search *Search; D20Sense_Motive *Sense_Motive; D20Sleight_Of_Hands *Sleight_Of_Hands; D20Spellcraft *Spellcraft; D20Spot *Spot; D20Survival *Survival; D20Swim *Swim; D20The_Plains *The_Plains; D20Trapmaking *Trapmaking; D20Tumble *Tumble; D20Use_Magic_Device *Use_Magic_Device; D20Use_Rope *Use_Rope; D20Weaponsmithing *Weaponsmithing; CSkills(int STR, int DEX, int CON, int INT, int WIS, int CHA); }; }; #endif CSkills.cpp #include "CSkills.hpp" using namespace D20Skills; CSkills::CSkills(int STR, int DEX, int CON, int INT, int WIS, int CHA) { Appraise = new D20Appraise(INT, 0, &this); Balance = new D20Balance(DEX, 0, &this); Bluff = new D20Bluff(CHA, 0, &this); Climb = new D20Climb(STR, 0, &this); Concentration = new D20Concentration(CON, 0, &this); Decipher_Script = new D20Decipher_Script(INT, 0, &this); Diplomacy = new D20Diplomacy(CHA, 0, &this); Disable_Device = new D20Disable_Device(INT, 0, &this); Disguise = new D20Disguise(CHA, 0, &this); Escape_Artist = new D20Escape_Artist(DEX, 0, &this); Forgery = new D20Forgery(INT, 0, &this); Gather_Information = new D20Gather_Information(CHA, 0, &this); Handle_Animal = new D20Handle_Animal(CHA, 0, &this); Heal = new D20Heal(WIS, 0, &this); Hide = new D20Hide(DEX, 0, &this); Intimidate = new D20Intimidate(CHA, 0, &this); Jump = new D20Jump(STR, 0, &this); Listen = new D20Listen(WIS, 0, &this); Move_Silently = new D20Move_Silently(DEX, 0, &this); Open_Lock = new D20Open_Lock(DEX, 0, &this); Preform = new CPreform(CHA, &this); Profession = new CProfession(WIS, &this); Ride = new D20Ride(DEX, 0, &this); Search = new D20Search(INT, 0, &this); Sense_Motive = new D20Sense_Motive(WIS, 0, &this); Sleight_Of_Hands = new D20Sleight_Of_Hands(DEX, 0, &this); Spellcraft = new D20Spellcraft(INT, 0, &this); Spot = new D20Spot(WIS, 0, &this); Survival = new D20Survival(WIS, 0, &this); Swim = new D20Swim(STR, 0, &this); Tumble = new D20Tumble(DEX, 0, &this); Use_Magic_Device = new D20Use_Magic_Device(CHA, 0, &this); Use_Rope = new D20Use_Rope(DEX, 0, &this); }
אני צריך לגשת מאובייקט אחד לאחר הנמצא במחלקה CSkills. בשביל זה אני מנסה לקחת את this...