简体   繁体   中英

Resizing output Terminal in C Language

would like to get some help on ac project i am currently working on. I have a string/array of output to the terminal, but somehow the standard terminal is too small for my output. Even after i manually expand the window of the console the output is still cut off, instead of printing in a single line, it just gets cut off and go to the next row automatically.

hope to get help.

I think that the only way to correct this is by splitting your one-line output in multiple lines, using "\\n" at the end of every line.

By doing this you can control when and where it has to write in the next line, and you can make it look more like you wanted to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM