🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #14598

Re: int -> string

#14598
From: The ChaoTix
Date: Thu, 25 Jan 2001 21:28
28 lines
1634 bytes
Zal zal dan iets van dit worden:

void main(void)
{ char String[100];
  int T=1234;
  strcpy(String,"Het nummer in T is: ");
  char Temp[10];
  atoi(Temp,T,10);
  strcat(String,Temp);
  printf("%s",String);
}


Ward Poelmans <Ward.Poelmans@wol.be> schreef in berichtnieuws
3A7088CB.83064181@wol.be...
> Hoe voeg ik een integer waarde toe aan een string in C++?
> Waarschijnelijk een domme vraag maar ik weet het niet!
>
> Ward.
>
> --
> # On the requirements it said: Windows 98 or better - so I installed Linux
>
> # Red hat Linux 7.0 --- Kernel 2.2.16-22 on i586
>   9:12pm  up 44 min,  3 users,  load average: 0.40, 0.22, 0.12
>
>
>
Technical Details
Message-ID: <MT0c6.256903$8r2.4824958@nlnews00.chello.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!news1.carrier1.net!amsnews01.chello.com!nlnews00.chello.com.POSTED!not-for-mail
References: <3A7088CB.83064181@wol.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,f33637d511d69c1a
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2001-01-25 18:11:14 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!news1.carrier1.net!amsnews01.chello.com!nlnews00.chello.com.POSTED!not-for-mail
From: "The ChaoTix" <The_ChaoTix@chello.nl>
Newsgroups: be.comp.programming
References: <3A7088CB.83064181@wol.be>
Subject: Re: int -> string
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <MT0c6.256903$8r2.4824958@nlnews00.chello.com>
Date: Thu, 25 Jan 2001 21:28:12 GMT
NNTP-Posting-Host: 212.187.118.76
X-Complaints-To: abuse@chello.nl
X-Trace: nlnews00.chello.com 980458092 212.187.118.76 (Thu, 25 Jan 2001 20:28:12 GMT)
NNTP-Posting-Date: Thu, 25 Jan 2001 20:28:12 GMT
Organization: chello broadband