Center text in fixed-width field with stream manipulators in C++
Here’s a helper class that accomplish what you want: It’s used simply by calling centered(“String”), like so:
Here’s a helper class that accomplish what you want: It’s used simply by calling centered(“String”), like so: