TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JT DOYLE
from: PAUL WANKADIA
date: 1997-06-19 12:41:00
subject: band

On 15 Jun 97, Jt Doyle wrote to All --
 JD> i am trying to start a band i play the bass guitar if you are
 JD> intrested msg me thanks bye
I've got code for a class called 'Member', but I'm not sure how to implement
a class called 'Band', especially in relation to the way I'll store the list
of Members...
=====
#include 
class Member {
     private:
          char *member_name;
          int member_instrument;
     public:
          Member(char *, int);
          ~Member();
          char *get_member_name() { return member_name; }
          int get_member_instrument() { return member_instrument; }
};
Member::Member(char *add_name, int add_instrument) {
     member_name = strdup(add_name);
     member_instrument = add_instrument;
     return;
}
Member::~Member() {
     free(member_name);
     return;
}
--- PPoint 2.00
---------------
* Origin: Junyer's Workshop (3:640/772.3)

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™.