hey. could any of you tell me how to write like a simple question program like ask a question and answer yes, get one response and answer no and get another. I know it will have to look someting like

char yesno;
cout<<"this is a question?"<<endl;
cin>>yes;
if (yesno==yes)
cout<<"this is an answer"<<endl;
if (yesno==no)
cout<<"this is a different answer"

thanks a lot,
max