>> It means the value returned by getAge() will not change the variable age.
Not exactly the full meaning, but that's really off the topic of the thread anyway.
Printable View
>> It means the value returned by getAge() will not change the variable age.
Not exactly the full meaning, but that's really off the topic of the thread anyway.
Thanks alot, I'm almost certain there is some fault with it being a constant .Quote:
Originally Posted by Prelude
In the input function it is declared as a const [] and the other parameter refer to the integer.. Will check this a little more and if I still can't get it to work I'll drop by again. ThanksCode:void initialize(char[], int *);
void input(const char [], int &);
void print(const char *, const int);
void growOlder(const char [], int *);
bool comparePeople(const char*, const int *, const char *, const int *);
Good god it works :)! Thanks for all the help. The fault was that a const char [] got into the function and couldn't be altered. Now I can finally go to sleep later tonight. Will probably need help further on in my studies. Sorry Salem for my naiveness.