Let's say I have the following:
char cipan[9];
then what should I pass to the function? how about the get and set method??
I'm currently doing like this
set method
void setCipan(char cipan[]){
this->cipan = cipan;
}
and the get method
char getCipan(){
return cipan;
}
and I get an error when compiling??
Im totally blur.. can someone explain what should i pass to the function??
    class userData{
private:
    string name;
    char  dateCreate[9];
    void userDataInput(string name,char dateCreate[]){
        this->name = name;
        this->dateCreate = dateCreate;
    }
public:
    //constructor
    userData(string name){
        userDataInput(name,dateCreate);
    }
    userData(string name,char dateCreate[]){
        userDataInput(name,dateCreate);
    }
    //mutator methods
    void changeName(string name){this->name = name;}
    void changeDateCreate(char *dateCreate){this->dateCreate = dateCreate;}
    //accesor methods
    string getName(){return name;}
    char *getDateCreate(){return dateCreate;}
};
 
     
    