Hi
Could you guys help me out with the following code:
i really cant understand what is wrong, ive tryed many things to fix.Code:#include <iostream>
using namespace std;
int main()
{
char thisisacharacter;
int X;
int Y;
cout<<"Are you X or Y ? ";
cin>> thisisacharacter;
cin.ignore();
if ( thisisacharacter == Y ) {
cout<<"You are a male!\n";
}
if (thisisacharacter == X ) {
cout<<"you are a female!\n";
}
cin.get();
}