14 Aug
2007
14 Aug
'07
20:31
I know that this is rather a simple question for a C++ programmer, but I don't know a better place to ask, since this topic is more related to the operating system than to the C++ language. I want to display the simulation progress in CLI using something like this: for(int n=0;n<10;n++) { sleep(2); cout << (n/9.0) << "%\n"; } How can I display this using the same line instead of jumping each time at a new line ? (besides "\r") Is there a way to make the cursor disappear while displaying? -- Bogdan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org