delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/18/15:54:16

From: "Roland Moritz" <hotel DOT moritz AT utanet DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Numbers to Strings
Date: Sat, 18 Sep 1999 20:33:30 +0200
Organization: UTANET Newsserver
Lines: 12
Message-ID: <7s0kea$qr6$1@rohrpostix.uta4you.at>
NNTP-Posting-Host: mibeu01-0318.utaonline.at
X-Trace: rohrpostix.uta4you.at 937678090 27494 212.152.129.64 (18 Sep 1999 18:08:10 GMT)
X-Complaints-To: news-admin AT utanet DOT at
NNTP-Posting-Date: 18 Sep 1999 18:08:10 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi, I'm quite new to programming in C++ and I have got a question about
strings: How can I convert a number into a string, e.g. there is a variable

int i;

then how do I make a string which contains the number-variable i in
ASCII-code, so that I can use it, for instance, to give it out with the
Allegro textout-function (Or is there another way to do this)? (Hope you
know what I mean...something like the "str"-Function in Pascal, if this
helps anyone...)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019