just a quick one!
How do u clear an array of all its data? ive just got random stuff in and i cant get rid of it!
heres my structure
Code:
class book {
//starting the class
public:
struct detail {
//structure start
char name[20];
char authors[20];
char ISBN[20];
char publisher[20];
char cdrom[20];
char year[20];
char price[20];
//fields in structure
}np[MAX];
void enter(int);
void finding(void);
void open(int);
void findnme(void);
void findauth(int);
void findpub(int);
void findyear(int);
void findcd(int);
//defining things in base class for the search function
};
thanks in advance! im sure its simple but i cant see it!