Home > Articles > Programming > C/C++

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

Like this article? We recommend

C++: The Next Generation

I need to be honest with you about something. This might come as a shock to you. I miss the old C language's style of formatting text! If you find the << operator a bit cumbersome, take a look at something new, which is in some ways something old. A new library is out there called Boost, which may well find its way into the next C++ standard. This library includes a handy function called format, which makes formatting your strings incredibly easy. If you're familiar with the old C language's printf statement (it's a function, really), you'll recognize some of this. However, this new format function is way more powerful than the old print statement. And, of course, it works with streams, unlike printf.

You can learn more about it at http://www.boost.org. If you visit this site, click on the Documentation: Current Release link at the top left of the page. Scroll down and find the item called format. Click on it. Then on the next page, click Documentation. That's where it all begins.

  • + Share This
  • 🔖 Save To Your Account