Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. C   / syntax / adressing member function
  2. SomeObject->SomeFunction()->AnotherFunction(...);
  3.        
  4. const int * SomeFunction() {return ipValue;}
  5.        
  6. Object* obj = SomeObject->SomeFunction();
  7. obj->AnotherFunction();
  8.        
  9. class A
  10. {
  11. public:
  12.    A* foo();
  13.    A* goo();
  14. };
  15.  
  16. A* a = new A;
  17. a->foo()->goo()->foo();