Answer the question
In order to leave comments, you need to log in
How to store a word in a variable?
How to write the answer word into a variable? According to this code, when you start the console by entering the first answer, it jumps to the 3rd question and ends. When displaying variables, draws " ¤ ". What to do?
setlocale(0, "");
char answ1, answ2, answ3;
cout << "Ответ 1 "; cin >> answ1;
cout << "Ответ 2 "; cin >> answ2;
cout << "Ответ 3 "; cin >> answ3;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question