In c++ i want to know how to output the result on dos screen page wise,i.e. when i am displaying something if the page is filled then a prompt should come like "Press any key to continue.."
More precisely i want an equivalent of the '/p' command which is used in DOS.

your program has to do everything -- count the number of lines printed and when the screen fills up display the message then wait for user input to continue.

If you are going to be doing much work with console screens (DOS screens some people refer to them, but that isn't right) you need to become familiar with the Win32console functions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.