Article View: nl.comp.programmeren
Article #655Re: c++ isin code
From: Koen Deforche
Date: Thu, 10 May 2001 19:06
Date: Thu, 10 May 2001 19:06
29 lines
1892 bytes
1892 bytes
TdC wrote: > > ik probeer deze code te laten werken in c++ in gewoon c werkt het maar wel > met warning bij compile het compileert in C, maar werken? Dat zou toch wel straf zijn. Soms zijn dingen niet zoals ze lijken. Bvb., ik voeg volgende lijnen toe aan uw programma: > char *word1; printf(string1); /* print string1! */ printf(string2); /* print string2 */ > word1 = strtok (string1, " "); // returns a char * En als ik het dan run krijg ik: [kdf@driewerf tmp]$ gcc bla.c bla.c: In function `main': bla.c:37: warning: passing arg 1 of `isin' from incompatible pointer type bla.c:37: warning: passing arg 2 of `isin' from incompatible pointer type [kdf@driewerf tmp]$ ./a.out y?X����9b@`$?y?X����9b@`it works[kdf@driewerf tmp]$p]$ Hmm :) koen.
Technical Details
Message-ID:
<3AFAE748.EFBA35E@irule.be>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!nntp.cs.ubc.ca!zapata.tvd.be!news.tvd.be!news.chello.be!not-for-mailReferences:
<GsAK6.67067$ii.8636438@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII X-Google-Thread: 107324,6e75983a23de8f69 X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,6e75983a23de8f69 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2001-05-10 15:13:41 PST Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!nntp.cs.ubc.ca!zapata.tvd.be!news.tvd.be!news.chello.be!not-for-mail Message-ID: <3AFAE748.EFBA35E@irule.be> From: Koen Deforche <kdf@irule.be> X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: nl.comp.programmeren,be.comp.programming Subject: Re: c++ isin code References: <GsAK6.67067$ii.8636438@afrodite.telenet-ops.be> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 29 Date: Thu, 10 May 2001 19:06:27 GMT NNTP-Posting-Host: 195.162.217.164 X-Complaints-To: abuse@chello.be X-Trace: news.chello.be 989521587 195.162.217.164 (Thu, 10 May 2001 21:06:27 MET DST) NNTP-Posting-Date: Thu, 10 May 2001 21:06:27 MET DST Organization: Chello Usenet Service