Article View: be.comp.programming
Article #8908Re: linux c++ auto wil niet starten :)
From: Philip Paeps
Date: Mon, 10 Jun 2002 21:12
Date: Mon, 10 Jun 2002 21:12
26 lines
1790 bytes
1790 bytes
gert <gert@easynet.be> wrote:
[...]
> hoe kan ik de variable waardeG aan variable string toevoegen ?
> (gcc lib)
>
> char * gas(int waardeG){
> char * string;
>
> string = "motor rpm = " ;
> //string = "motor rpm = " waardeG ;
Je kunt de strings gewoon catten met +=, <string> dient ervoor :-)
string = "motor rpm = ";
string += waardeG;
- Philip
--
Philip Paeps philip@paeps.cx
In a bureaucratic hierarchy, the higher up the
organization the less people appreciate Murphy's law,
the Peter Principle, etc.
Technical Details
Message-ID:
<fD8N8.26003$ud.3457@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news-xfer.siscom.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!nerim.net!news.tiscali.fr!proxad.net!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mailReferences:
<3D04E1A2.1040508@easynet.be> <3D04F371.8000700@easynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,c850a5934c174449
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-06-10 14:12:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news-xfer.siscom.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!nerim.net!news.tiscali.fr!proxad.net!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
Sender: Philip Paeps <philip@juno.home.paeps.cx>
From: Philip Paeps <philip@paeps.cx>
Subject: Re: linux c++ auto wil niet starten :)
Newsgroups: be.comp.programming
References: <3D04E1A2.1040508@easynet.be> <3D04F371.8000700@easynet.be>
User-Agent: tin/1.5.13-20020610 ("Sugar") (UNIX) (FreeBSD/4.6-RC (i386))
Lines: 26
Message-ID: <fD8N8.26003$ud.3457@afrodite.telenet-ops.be>
Date: Mon, 10 Jun 2002 21:12:43 GMT
NNTP-Posting-Host: 213.118.134.68
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1023743563 213.118.134.68 (Mon, 10 Jun 2002 23:12:43 MET DST)
NNTP-Posting-Date: Mon, 10 Jun 2002 23:12:43 MET DST
Organization: Telenet Internet