cout << "( Type in a / b / c / d )" << endl;
cout << endl;
cout << "a. 123" << endl;
cout << "b. 456" << endl;
cout << "c. 789" << endl;
cout << "d. 012" << endl;
string answer;
string a, b, c, d;
cin >> answer;
if (answer == a)
{
cout << "you are correct" << endl;
}
else if (happiness == b)
{
cout << "you are wrong" << endl;
}
else if (happiness == c)
{
cout << "you are correct" << endl;
}
else if (happiness == d)
{
cout << "you are correct" << endl;
}
------------
I want to make an MCQ
But I can't output this
Please tell me where is wrong
Thank you so much!!
更新1:
*happiness = answer (wrong typing)