I know this may look sad but...Could you help me?
Here is my code, how do I make this work... I want it so if you press y it says "Good, you may enter the program!" and if you press n it says "You're not an Anime fan?!". Once again here is my code:
#include <iostream.h>
int main()
{
int fan; ..
cout<<"Please tell me, are you an Anime fan? (y/n): ";
cin>>fan;
if(fan=='y')
{
cout<<"Good, you may enter the program!";
}
else
{
cout<<"You're not an Anime fan?!";
}
return 0;
}
I crave C++ knowledge.