How to pass a char array to a function.
ads
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 the error "main.cpp", line 86: Error: formal argument 1 of type char in the call to Mail :: putAddress (char, char, char, char)) passed char *.
c ++ function arrays char
Daniel Del Core
source share