c++ - print 999 line in output screen -
this code print need see line scroll
#include "iostream" #include "conio.h" using namespace std; void main() { (int k=1 ;k<1000;k++) cout<<k<<"\n"; getch(); }
i write in windows 7
when compile , see result 300 line see 701-999 butt need see line 1-999
if on linux:
g++ filename.cpp -o filename.out ./filename.out | less
i don't use windows, can't if there equivalent.
Comments
Post a Comment