I have a simple program that asks a user for personal info (age, phone ...) and stores this info in the private memberspace.
Then the info is displayed and asks the user if this is correct and if to make changes, if so to what.
Part of my private looks like this
In my main, I have this codeCode:
double set_new_age ();
and a function :Code:
cin >> new_age;
I am getting 2 errors:Code:
void Person::set_new_age (double new_age_p )
age = new_age_p ;
What is the problem, I can't figure this out .Quote:
d:\docume~1\suchy\desktop\info~1.cpp:208: prototype for `void Person::set_new_age(double)' does not match any in class `Person'
d:\docume~1\suchy\desktop\info~1.cpp:19: candidate is: double Person::set_new_age()