13a-ReturnThis - return this; } }; int main (void) {...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std; class LotsOfCalls { public: LotsOfCalls* First() { cout << "First\n"; return this; } LotsOfCalls* Second() { cout << "Second\n";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return this; } }; int main (void) { LotsOfCalls loc; loc.First()-&gt;Second(); return 0; } /* First Second Press any key to continue . . . */...
View Full Document

This note was uploaded on 10/05/2011 for the course CS 37 taught by Professor Glenncuevas during the Summer '09 term at Irvine Valley College.

Ask a homework question - tutors are online