Possible Duplicate:
How do I convert a double into a string in C++?
Convert double to string C++?
Total C++ and Win32 noob here playing around in Visual Studio 2012 land, so bear with me as I sometimes bite off more than I can chew :)
I have a Win32 app that's simply set up a window using a peekmessage loop for real-time updating. The app runs okay and the Window shows fine. I'd like to print text to the Window title bar displaying the frames per second from a clock / timer class I was provided with.
I've yet to learn GDI / GDI+ or Direct2D & DirectWrite for outputting text and variable values to the client area, so for now I need a simple method of outputting some basic statistics to the Window and I figured the easiest way is to update the window title at this stage. My window class has a SetTitle method that takes a std::wstring so I was wondering how best to build a string from literal text and variable values such as double? As you can likely surmise I'm also unfamiliar with strings beyond the basic std:cout for Console-based apps.
Amazon tells me my Holy 'Book of Petzold, 5th Edition' is 3 days away so any tips will be greatly appreciated and you'll make it onto my Christmas card list this year.
Thanks.