| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Help with Classes |
JC> Now, for how I'd do this instead:
JC> class PlayerInfo // Note that `class' canNOT be capitalized.
JC> {
JC> public: // And neither can `public' or `private'
JC> virtual void show_status(ostream &stream) {
JC> cout << "Hit Points: " << itsHitPoint << endl;
JC> }
So, remind me... why did you pass in the ostream&? :-}
--- Maximus/2 3.01
---------------
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.