Hi I'm just slowly getting to grips with C++ after years of clinging to VB. I seen a bit of code yesterday which looked something like:

cout << "Total Cost is %i% pounds", Total_Cost;

Where %i% inside the string is replace with the integer Total_Cost. As it turns out thats exactly what I need! I'm using a large string with many veriables inside, it's going to be a nightmare to manually split it all up. If I've typed the above code correctly, and people reconise it can you point me to where I can learn more?

Cheers