This code will do what you're asking for, however, I have only tested it in windows. Its behavior may be different under linux/mac.
Qt Code:
#include <iostream> using std::iostream; int main() { for (int i=0; i < 5; i++) cout << "Progress: " << i*25 << "%\r"; return 0; }To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks