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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -