Class homework: cannot use strings.
How do I declare a function that passes me a cstring? char[5] for example.
I need it to explicit a private member of a class.
class Customers{
private:
caName[kiArraySize]; //kiArraySize is 30
public:
//this is what I need help for
char[] passName(Customers);
};
char[] Customers::passName(Customers c){
return c.caName;
}
void RandomFunction(){
cout << Customers.passName;
}
I cannot use string, homework. How can I make it? Thank you