views:

49

answers:

3

My code dumps a hell amount of data on the command prompt. How do I activate the 'MORE' option for the output so that I see the output page by page? (MS Visual Studio)

For eg. Matlab has the command 'more on' to do the same!

Thanks.

+3  A: 

With the Windows command prompt you can append | more to your command, e.g.,

dir | more
James McNellis
A: 

There is no "more option". As James said above, there is a "more" command that you can use to paginate output.

John Saunders
A: 

Create wrapper functions around the output functions. In these functions, track the number of newlines. If the amount reaches a given limit, pause the screen by using std::istream::ingore().

Otherwise, as others have stated, pipe the output to a paging application.

Thomas Matthews