G
G
geonomich2020-05-08 14:34:35
C++ / C#
geonomich, 2020-05-08 14:34:35

How to choose y/n?

Need to get the answer

int main()
{
    setlocale 0, " ";
    cout << "Вы согласны на операцию?";
};

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Melnikov, 2020-05-08
@genomich

char answer;
cin >> answer;
if (answer == 'y') {
cout << "Ура заработало :) ";
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question