Is there a function in c++ that lets you change or increase the size of the window when a program is running (like in windows 95 where there's no way to scroll down if the output goes over 20 lines)?
Is there a function in c++ that lets you change or increase the size of the window when a program is running (like in windows 95 where there's no way to scroll down if the output goes over 20 lines)?
I think you can useCode:mode
but I can't remember. Use mode /? to see all the possible arguments.Code:mode /rows=50 /cols=90
Actually, it's 25.(like in windows 95 where there's no way to scroll down if the output goes over 20 lines)
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
No there isn't. mode isn't a C\C++ command, it's a DOS command. Anyway you could use a C command System(char *string); to issue a DOS command which would change the size of a console window, without the user interference.
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
or you could use some of the win32 api console functions, such as GetConsoleWindow() to get the handle to the window, then change its size as a normal window. you have to include windows.h.