Code:
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
string Question;
int LoopStop;
do
{
cout<<"Please Ask The Computer A Question:\n"<<flush;
getline(cin,Question);
cout<<" \n" << flush;
cout<<"NO!\n" <<flush;
cout<<" \n" << flush;
cout<<"Would you like to continue? (0 for yes/ 1 for no)\n"<<flush;
cin >> LoopStop; // This leaves a \n in the stream which then gets input into
// your string the next time around.
cin.ignore(); // This will ignore the next character in the stream.
cout<< " \n" << flush; // Why the \n when you're about to clear the screen?
system("CLS");
} while ( LoopStop == 0 );
return 0; // Don't forget to return an int
}
// I'd also recommend not flushing your output so much and grouping your
// cout statements better. If you want to flush and do new lines, use endl. Also indent.
If you don't understand this, then read up on how streams/IO buffers work.