Hi, I don’t know anything about Lisp, I know the basics of C. I’m trying to get the following code snippet to work, to replicate the same thing as the input, but it’s not happening.
#include <iostream>
#include <string>
#define DATA_END ((char) 5)
#define DATA_BEGIN ((char) 2)
using namespace std;
int main() {
string entrada=" ";
do {
cout << DATA_BEGIN << entrada <<flush;
cout << DATA_END << flush;
cin >> entrada;
} while (entrada != "s");
cout << DATA_BEGIN<< "Programa finalizado." <<flush;
cout << DATA_END;
return 0;
}