Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Leda > class interacti...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 105 of 212
Post > Topic >>

class interaction

by dansteinhauer@[EMAIL PROTECTED] (Dan) Feb 4, 2004 at 03:31 AM

How can I let two cl***** call a method from each other,
like in this example?

class A {
  B* myB;
  void doSomething() {
    myB->doSomething();
  }
};

class B {
  A* myA;
  void doSomething() {
    myA->doSomething();
  }
};

Thanks,
Dan
 




 2 Posts in Topic:
class interaction
dansteinhauer@[EMAIL PROT  2004-02-04 03:31:54 
Re: class interaction
bapata07@[EMAIL PROTECTED  2004-02-05 09:38:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:34:05 CDT 2008.