Format Text with the New Format Library
Learn to format text with the new format library.
We'll cover the following
Until now, if we wanted to format text, we could use either the legacy printf
functions or the STL iostream
library. Both have their strengths and flaws.
The printf
based functions are inherited from C and have proven efficient, flexible, and convenient for over 50 years. The formatting syntax can look a bit cryptic, but it's simple enough once we get used to it.
Get hands-on with 1400+ tech skills courses.