Skip to main content
GameDev.net gamedev.net
🔒 Locked

simple class question

Started by Dwiel Dec 31, 2001 at 8:48 PM 3 replies 300+ views
Original Post
Dwiel
Dwiel
I know this is probobly a stupid question, but how would I acomplish this with out the compiler erroring?: class a { b BB; }; class b { a AA; }; Probobly basic question, but I can''t think right now. Thanx alot Zach Dwiel ~ Tazzel3d
untalkative_monkey
untalkative_monkey
do this...

class b;

class a
{
b BB;
};

class b
{
a AA;
};



...go on and live with no regrets, you only have one life...
...go on and live with no regrets, you only have one life...
Dwiel
Dwiel
Thanx for the hlep guys, I sometimes know something is simple and used to know it, I just have like a mind freeze, and I agree with you NULL and VOID, there are to many people asking these kinds of questions, only because not everybody looks in MSDN before they come and waste our time.

Tazzeld
untalkative_monkey
untalkative_monkey
come on guys, if someone asks dumb questions that u don''t want to answer, just don''t answer them... then they won''t be wasting your time... but you know what does waste time? telling people that they ask dumb questions

...go on and live with no regrets, you only have one life...
...go on and live with no regrets, you only have one life...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.