Home > Articles > Programming > C/C++

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Summary

The C++ language includes many features that make formatting text possible. You can format your text into columns, and you can be assured that your floating point numbers all have the same precision. But in this short article I only had time to touch the surface. Putting the new Boost library aside, the Standard Library has a rich set of manipulators and functions that allow you to align your columns so numbers are right-aligned or left-aligned. You can switch to hexadecimal notation or scientific notation. The list goes on. To see more, check out any of the many better C++ books out there; most of them have a handy list of all the manipulators and functions. (I'm partial to my own C++ books, which you can find on Amazon by searching on my name.) And have fun!

  • + Share This
  • 🔖 Save To Your Account