By what means can I make a message to stay on the screen?

As the question states, by what means can I make a message to stay on the screen?
Except :
-cin.get();
-cin.ignore();
-cin.sync();
-system("PAUSE");
Also, sleep doesn't work with my compiler(Code::Blocks 10.05 with MinGW and Ms Visual Studio 2008), when I even include the conio header file.
Last edited on
Why can't you just use one of those?
You mean so your program doesn't terminate?

You could just put it all in a run loop.

1
2
3
4
5
6
bool running = true;

while (running)
{
  // Your code
}
-cin.get();
-cin.ignore();
-cin.sync();

These make my programme malfunction...

And system("PAUSE"); is said to be for beginners, and has all the bad luck with it.
Or should I post my code?
AFAIK sleep() is not in conio
There is a Sleep() in Windows.h, and a sleep() in unistd.h

However they just block your program for a time. If you don't want for the message to disappear just don't erase it.
purposely misunderstanding the thread
Topic archived. No new replies allowed.