bool bPhaseEnd = false; for (int i = 0; i <= 10; ++i) { if ( i == 10 ) { bPhaseEnd = true; } fprintf ( stdout, "%s%d%c","procesing ", i, bPhaseEnd ? '\n' : '\r' ); fflush ( stdout ); usleep(500000); }
bool bPhaseEnd = false; for (int i = 0; i <= 10; ++i) { if ( i == 10 ) { bPhaseEnd = true; } fprintf ( stdout, "%s%d%c","procesing ", i, bPhaseEnd ? '\n' : '\r' ); fflush ( stdout ); usleep(500000); }