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)
|