in reply to Re: Re: I don't use printf enough
in thread I don't use printf enough
His c++ syntax is just fine, his obj can be understood as a pointer to an object:
#include <iostream.h> class aclass { public: int first_perfect_number(void); }; int aclass::first_perfect_number(void) { return 6; } int main() { aclass * ap = new aclass(); cout << "first perfect number is: " << ap->first_perfect_number() +<< endl; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: I don't use printf enough
by jryan (Vicar) on Oct 23, 2003 at 15:37 UTC |