How do you pass a char array into a function.
declarations
char fromName[64];
char fromStreet[64];
char fromSuburb[64];
char fromCountry[64];
function call
Trans[i]->putAddress(fromName, fromStreet, fromSuburb, fromCountry);
prototype
void putAddress(char,char,char,char);
function
void putAddress(char fName,char fStreet,char fSuburb,char fCountry){
return;
}
and Error "main.cpp", line 86: Error: Formal argument 1 of type char in call to Mail::putAddress(char, char, char, char) is being passed char*.