Counterglow Forums  

Go Back   Counterglow Forums > General Discussions > Technoglow

Reply
 
Thread Tools Display Modes
Old 30-09-2005, 20:52:09   #1
JM^3
colossal bender
 
JM^3's Avatar
 
Join Date: Jul 2003
Location: In front of my computer
C++ help

How do you do int to string?

I mean, besides sprintf?

Jon Miller
__________________
The G in Greg stands for Gaylord.
JM^3 is offline   Reply With Quote
Old 01-10-2005, 01:19:25   #2
Sir Penguin
Wise sprite
 
Sir Penguin's Avatar
 
Join Date: Nov 2001
Location: command.com
What's wrong with sprintf?

SP
__________________
Whether 'tis nobler in the plane to suffer
The asps and adders of outrageous fortune,
Or to take arms against a sea of bitch-ass motherfuckers
And by opposing fuck them up?

-- Samuel L. Jackson as Hamlet
Sir Penguin is offline   Reply With Quote
Old 01-10-2005, 05:21:27   #3
JM^3
colossal bender
 
JM^3's Avatar
 
Join Date: Jul 2003
Location: In front of my computer
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
__________________
The G in Greg stands for Gaylord.
JM^3 is offline   Reply With Quote
Old 01-10-2005, 09:09:16   #4
Asher
Token Black Guy & Yank of the Year
 
Asher's Avatar
 
Join Date: Apr 2002
Location: Birminghamshire upon Avon, UK
sprintf is a C function.
__________________
The internets are serious business.
Death Threat Counter: 1
Asher is offline   Reply With Quote
Old 01-10-2005, 15:12:07   #5
Sir Penguin
Wise sprite
 
Sir Penguin's Avatar
 
Join Date: Nov 2001
Location: command.com
C++ is old.

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

SP
__________________
Whether 'tis nobler in the plane to suffer
The asps and adders of outrageous fortune,
Or to take arms against a sea of bitch-ass motherfuckers
And by opposing fuck them up?

-- Samuel L. Jackson as Hamlet
Sir Penguin is offline   Reply With Quote
Old 01-10-2005, 19:04:04   #6
JM^3
colossal bender
 
JM^3's Avatar
 
Join Date: Jul 2003
Location: In front of my computer
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
__________________
The G in Greg stands for Gaylord.
JM^3 is offline   Reply With Quote
Old 01-10-2005, 19:04:42   #7
JM^3
colossal bender
 
JM^3's Avatar
 
Join Date: Jul 2003
Location: In front of my computer
ROOT is actually what I am using

http://root.cern.ch/

JM
__________________
The G in Greg stands for Gaylord.
JM^3 is offline   Reply With Quote
Reply
Forum Jump

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 15:58:16.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© Counterglow 2001-2012. All rights reserved.