#include <iostream>
#include <string>
using namespace std;
int main()
This is all i have and i know im totally wrong.. Whats my problem?? I can't think in my head how to do this..Code:{ string f= female; string m= male; string gender; cout <<"Please Enter Your Gender By Using M or F"<< flush; cin >> gender; cout << endl; if ( gender >= M ) cout <<"Your Gender Is:"<<" "<<M<<endl; else cout <<"Are you female?"<<endl; return 0; }
If the input is 'M' then the output should me "Male". If the gender is "F" then the output should be Female. And invalid gender otherwise.. I kinda gave up!!!!



LinkBack URL
About LinkBacks


