How to print something at the centre on the screen in CPP? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to print something at the centre on the screen in CPP?

I don't want to use spaces, cause it uses more memory. I sometimes want the entire text/numbers in cout to appear at the centre.

3rd Apr 2017, 11:12 AM
Jatin Srivastava
Jatin Srivastava - avatar
2 Answers
+ 1
court"\tword\t";
3rd Apr 2017, 12:21 PM
surya kumar
surya kumar - avatar
- 1
cout
3rd Apr 2017, 12:21 PM
surya kumar
surya kumar - avatar