How to align output to center of screen - C++?
问题 I am working on a C++ console app. I want to execute and print all the stuffs at the center of app window screen ( horizontally + vertically) as shown below. -------------------------------- | | | | | User : xyz | | Pass : **** | | | | | -------------------------------- I want to run my whole program as how above. Is there any way to do so? Any help or suggestion would be appreciated. 回答1: If you want to keep your application in a console, but want to do some layouts I'd recommend using