PDA

View Full Version : C++ help


JM^3
30-09-2005, 20:52:09
How do you do int to string?

I mean, besides sprintf?

Jon Miller

Sir Penguin
01-10-2005, 01:19:25
What's wrong with sprintf?

SP

JM^3
01-10-2005, 05:21:27
umm, cause it is old?

I heard from someone that you can use ostringstream or something similiar (there were two commands.. I don't remember the other one)

I used sprintf though

JM

Asher
01-10-2005, 09:09:16
sprintf is a C function.

Sir Penguin
01-10-2005, 15:12:07
C++ is old.

If you're working in .NET, the Convert class has all the conversion methods.

SP

JM^3
01-10-2005, 19:04:04
well, the rest of the program is all done in C++

so I think I will use it

apparently we have a class called TString which is nice to use.. I will try using it tonight

JM

JM^3
01-10-2005, 19:04:42
ROOT is actually what I am using

http://root.cern.ch/

JM