if you use iostream, and namespace std, you dont need to flush.
#include <iostream>using namespace std;void main(){ for(int i =0; i< 100; i++) cout << i + ''a''; cout << "\npress any key"; getch();}//main
if you dont want to use std, then prior to output, you can specify an ios flag, unitbuf, to flush frequently.
cout.flags(ios::unitbuf);