c++ yes no question

C++
// EXAMPLE
using namespace std;
string sAnswer;
cout << "Would you like to continue running the binary(y/n)?  ";
cin >> sAnswer;
Source

Also in C++: