i have a multi class project, there are 6 or so classes that have a 7th class referenced to, but in that 7th class i have it referenced to 1 of the first 6. this is creating problems for me and is quite hurting my brain.
here is some code:
Expand|Select|Wrap|Line Numbers
- #pragma once
- #include "player.h"
- ref class building :
- public square
- {
- public:
- building(String^ t, int p, int hp)
- {
- title = t;
- price = p;
- hprice = hp;
- }
- virtual void action(player^ a) override{System::Windows::Forms::MessageBox::Show("action'd by " + title);}
- private:
- int price;
- int hprice;
- };
Expand|Select|Wrap|Line Numbers
- #pragma once
- ref class player
- {
- public:
- player(void);
- void buyProperty(building ^ a);
- private:
- int money;
- int position;
- int piece;
- System::String^ name;
- array<building ^>^ owned;
- };
any help is greatly appreciated
thanks!