All data members of your class
class customer{
int no,nb,per;
char name[20];
has the private access control. So they are inaccessible outside the class and its member functions.
Also there is no indeed such data member as cnb in your class. cnb was declared as a parameter of a member function
customer(char *cname,int cno , int cnb,int cper );
but it does not mean that it is a member of the class.:)
Last edited on
the thing is
all data members should be private as declared in the question
so i have no idea what im doing