I came up with this. It doesnt say Male or Female, but it will shows M or F which stand for male and female.
That part works fine. lol, but now I cant figure out a way to allow the user to input their age and it set the age that way(using the class). Not using the class its super simple. But I want to be able to get input from the user and have it set human.setAge( their input here ). If you get what im saying, anyone wanna help me out?Code:do{
cout << "\n\n Gender: Male(1) or Female(2)\n\n";
cin >> gen;
if(gen == 1){
human.setGender('M');
}
else if(gen == 2){
human.setGender('F');
}
}while(0);
// Some cout's here...that'ss about it
Thanks for posts too guys. Im gonna mess around with what you guys said above, so I have a little better understanding of how to do the gender part and classes in general.
