Article View: be.comp.programming
Article #8905Re: linux c++ auto wil niet starten :)
From: gert
Date: Mon, 10 Jun 2002 18:44
Date: Mon, 10 Jun 2002 18:44
38 lines
1566 bytes
1566 bytes
-----------
motor.cpp
-----------
char * motor(char waardeS){
char * string;
if(waardeS == 'y'){
string = "motor is gestart";
}
if(waardeS == 'n'){
string = "motor is gestopt";
}
return(string);
}
char * gas(int waardeG){
char * string;
string = "motor rpm =" ;
return(string);
}
-------------------------
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 ;
Groetjes
Your c++ buddy
Technical Details
Message-ID:
<3D04F371.8000700@easynet.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mailReferences:
<3D04E1A2.1040508@easynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,c850a5934c174449 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-06-10 11:43:52 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail Message-ID: <3D04F371.8000700@easynet.be> Date: Mon, 10 Jun 2002 20:44:01 +0200 From: gert <gert@easynet.be> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: be.comp.programming Subject: Re: linux c++ auto wil niet starten :) References: <3D04E1A2.1040508@easynet.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 41 Organization: [ posted via Easynet Belgium ] NNTP-Posting-Host: 213.193.183.46 X-Trace: 1023734630 3779 213.193.183.46 X-Complaints-To: abuse@be.easynet.net