C++Tutorial for Beginners 33 - String Streams; Adding Number to Strings

String streams allow you to create strings in C++ from disparate data types; combining strings with ints, doubles and whatever you like. Some people use a function called sprintf for this, but those people are harking back to the function-only C days, when only C existed and C with classes (C++) hadn't been invented. In this tutorial we'll discover how to accomplish this highly-useful task the correct C++ way.

Click here to download source code for this tutorial.