char* n=m.getName();
I get the following error Invalid arguments ' Candidates are: char * getName() '
for the above instruction.What am I missing?
char* Medicine::getName()
{
return this->name;
}
name
is of declared as char name[50];
andm
is const Medicine& m