Console Memory too low

Hi

I have a huge amount of data to be printed into the console (iostream?). Unfortunately, the first lines are always deleted. Does anyone know how to increase the printed memory of the console?

I'm using VisualStudio C++ Express 2010. Is that a common problem with this IDE? Or is it even a C++ issue?

I'm quite new to programming in general and i couldn't find an answer on google. I excuse myself for obvious issues.
Last edited on
You can try to increase the size using SetConsoleScreenBufferSize:
http://msdn.microsoft.com/en-us/library/ms686044

I did some tests, and I was able to increase the height up to 32766 lines.
If you need more than that, then I would consider dumping your output to a file instead of printing it all out on the screen.

(For the record, this is a Windows-specific thing -- not a problem with Visual Studio or C++.)
Last edited on
Thank you!

i needed to read a bit about handles for SetConsoleScreenBufferSize(), but now it works perfectly well :)

i didn't even think about putting it into a file, thank you for that idea too^^
Topic archived. No new replies allowed.