I'm trying to create a small program where the user can input one of the strings name and he will receive teh value. In this case you put the name of a person from ym family and his age will pop up. I've written all the code i jsut don't know what's wrong with it. Can anybody help me fixing it. Plz post the correct code if you can. Thanks.
would've been nice if you'd told us what error you encountered, write that down. Anyway, when comparing strings use the == operator, not strcmp, this is c++ not c
quirky thank you so much. i shoudl have typed if (father == name) cout << fatherage;
else cout << "Invalid Name";
Seriously thank you so much. I've been trying to ifx this since yesterday. HOUrs on end. Thank you tHANK YOU!