|
From: Jason H. <jas...@bt...> - 2001-09-21 03:31:27
|
Hi, I'm a bit rusty in my C++ and I just cannot seem to find a way of initialising a std::string with an integer value. While I can write a function to do it quite easily I had thought that there was a either a standard function or member of string that would do it, but I can't find one. I might be missing something with being tired of course. I know in future I will want to be doing similar with float's too, and I hope there is an easy way of doing that. I don't want to have to reinvent the wheel if I can avoid it. I remember with AnsiString in BCB or (or Delphi) would take it as a constructor argument, but std::string doesn't seem to have that ability. Thanx for any help, Jason. |