Just Adventure News : News: City Quest, a Point-and-Click Adventure Press Release: stillalive studios detail how the final build of Son Of Nor will play out in brand new video Press Release: Skyward Collapse Now Available For PC/Mac Press Release: Divines of the East Class Spotlight: Eidolon Press Release: The Mighty Quest For Epic Loot Brings Out The Archer Addon: Legacy of Romulus Expansion to Star Trek Online Launches Game: Warner Bros. Interactive Entertainment wishes gamers Good Night, Good Luck in Dying Light Beta: Second Phase of Eldevin Closed Beta Begins News: Video Games: The Movie Press Release: Indie Narrative / Strategy Game 7 Grand Steps Will Release June 7 for PC and Mac
Home - Forum Home
Welcome Guest, please Login or Register!
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Topic: Yo Coders, help...

    Page 1

All Forums : [General] : Off Topic Forum > Yo Coders, help...
4 FEB 2003 at 3:08am

STooGE4444, EastCoastDoom...

Schattenjger
Schattenjger



Posts : 2099
Joined: 15 OCT 2002

Status : Online
Hey dudes,

Is there a function in C++ to convert from integer ASCII code to it's character representation?  I don't want to check for each case....

Thanks guys,
~rbeeler SVT  &&Name's STooGE$$$$ Valpurgius TNT; it's not PLURAL&&[img]http://www.riseaboverecords.com/sleep/image/sleepfront.gif[/img]&&151.Generally speaking Sludge Doomsters are Angry, Gothic doomsters are sad, funeral doomsters are barely breathing, death doomsters are dirty, drunk and dribbling, Stoner Doomsters don't care, drone doomsters are out of it and traditional Doomsters are permanently pissed off, mainly with other doomsters

Profile Search


4 FEB 2003 at 3:14am

Agustín Cordes

Guild Master
Guild Master



Posts : 5696
Joined: 23 OCT 2002
Location: AR, Buenos Aires

Status : Offline
If only you want to print it, I'd do the following:

printf("%c", i);

If not, I think there's a function called char(); but I'm not sure.

Slightly Deranged - Cult Cinema And Games!

www.slightly-deranged.com


Profile Search
4 FEB 2003 at 3:22am

STooGE4444, EastCoastDoom...

Schattenjger
Schattenjger



Posts : 2099
Joined: 15 OCT 2002

Status : Online
Thanks, but It wasn't as long as I thought it was going to be...
~rbeeler SVT  &&Name's STooGE$$$$ Valpurgius TNT; it's not PLURAL&&[img]http://www.riseaboverecords.com/sleep/image/sleepfront.gif[/img]&&151.Generally speaking Sludge Doomsters are Angry, Gothic doomsters are sad, funeral doomsters are barely breathing, death doomsters are dirty, drunk and dribbling, Stoner Doomsters don't care, drone doomsters are out of it and traditional Doomsters are permanently pissed off, mainly with other doomsters

Profile Search
4 FEB 2003 at 3:24am

Agustín Cordes

Guild Master
Guild Master



Posts : 5696
Joined: 23 OCT 2002
Location: AR, Buenos Aires

Status : Offline
Oh sorry. I didn't read the "I don't want to check" part :


I think the itoa(); function (in case you need it for the future) could work.

Slightly Deranged - Cult Cinema And Games!

www.slightly-deranged.com


Profile Search
4 FEB 2003 at 3:28am

MichalN

Grand Inquisitor
Grand Inquisitor



Posts : 7058
Joined: 14 SEP 2003

Status : Online
Originally Posted By Rael (4 FEB 2003 3:13am)
If not, I think there's a function called char(); but I'm not sure.

There isn't... I mean, what should it do? All characters are represented as integers. There is nothing to convert really. You just display the data either as an integer or as a character.
I forgot my sig.

Profile Search
All Forums : [General] : Off Topic Forum > Yo Coders, help...

    Page 1

Jump to:
0 Members Subscribed To This Topic