Re: Newby: More VC6 errors...



Blue Streak wrote:
Hello,

I am trying to typecast an int and a float into a basic_string.
The help files are less than helpful. How do I accomplish this?

The trouble is I haven't touched C/C++ in 10 years.

Blue:

You need to look at ostringstream (or basic_ostringstream).

--
David Wilkinson
Visual C++ MVP
.



Relevant Pages

  • Newby: More VC6 errors...
    ... I am trying to typecast an int and a float into a basic_string. ... The help files are less than helpful. ... How do I accomplish this? ... The trouble is I haven't touched C/C++ in 10 years. ...
    (microsoft.public.vc.language)
  • Re: Abnormal program termination
    ... foo.c:4: warning: function declaration isn't a prototype ... Your version is legal under C90 rules, but int mainis more explicit ... float ave(), average; ...
    (comp.lang.c)
  • RTF Render with Scale
    ... float fHorzSizeInches = nHorzSize / 25.4f; ... IntPtr hdc = graphics.GetHdc; ... int nHorzSize = SafeNativeMethods.GetDeviceCaps(hdc, ... PHYSICALWIDTH = 110, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: RAD vs. performance
    ... work with both int and float. ... name (e.g. "+" for both int and float addition). ... Again, it's a compatibility issue. ... contend that assuming interfaces are equivalent and inferring the most ...
    (comp.lang.misc)
  • (part1b) Han from China teaches you C
    ... int flist, mlist, slist; ... float board_size; ... static void draw_tube(float bottom_radius, float top_radius, ... glVertex3f(xmin, ymin, zmax); glVertex3f; ...
    (comp.lang.c)

Loading