I was more thinking of all the replies telling him why resizing the window is not such a good idea. Normally the size of the terminal window is something that the user decides and not something you would expect the program to change. It's a bit similar to how you don't want websites to resize your web browser.
It's not even sure the user is running your program in a window. Press Ctrl+Alt+F1 (Not yet! Read everything first.), log in, and start your program. See, no windows! Linux can be used without a windowing system installed. Press Ctrl+Alt+F7 to switch back to the desktop environment.