Hello! I am workign a project where we have to estimate the height of a child. I am trying to test my work thus far but I keep getting the same error, error LNK2019: unresolved external symbol "double __cdecl checkHeight(char,double,double)" (?checkHeight@@YANDNN@Z) referenced in function _main. I have tried several different things, but I can't seen to correct the error. If anyone knows what causes this or how I can fix it please let me know. I attached the code from main and the function. Thanks.
cout << "Would you like to estimate the height of a male or female child? " << endl <<
"Choose m for male and f for female." ;
cin >> gender;
cout << "Choose f to enter the height in feet or i to enter the height in inches." ;
cin >> h;
cout << "Please enter the mother's height: " ;
cin >> motherHeight;
cout << "Please enter the father's height: " ;
cin >> fatherHeight;
while (gender == 'm') {
if (h == 'f') {
checkHeight(gender, motherHeight, fatherHeight);
}
}
}