🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #9414

Re: [C++]: Splitten van een string ... Wat doe ik fout ???

#9414
From: Haplo
Date: Mon, 29 Apr 2002 17:23
12 lines
1464 bytes
>             cout<<"Er komt een spatie voor op positie: "<<i<<endl;
>
>             spatie = i;
>             split = new char[spatie - 1];

spatie - 1 moet hier spatie + 1 zijn.

Ter verduidelijking:
Stel dat spatie op positie 1 zit, dan heb je dus een char array van 2 lang
nodig (1 char + '\0')

Haplo
Technical Details
Message-ID: <%jfz8.45769$Ze.7564@afrodite.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!mtu.ru!image.surnet.ru!surnet.ru!news.mailgate.org!fr.clara.net!heighliner.fr.clara.net!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
References: <B8F31C5C.2817%christof_laeremans@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,966929e88b6c33f1
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-04-29 10:23:11 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!mtu.ru!image.surnet.ru!surnet.ru!news.mailgate.org!fr.clara.net!heighliner.fr.clara.net!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
From: "Haplo" <valgaeren@pandora.be>
Newsgroups: be.comp.programming
References: <B8F31C5C.2817%christof_laeremans@hotmail.com>
Subject: Re: [C++]: Splitten van een string ... Wat doe ik fout ???
Lines: 14
Organization: Monkey Business
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <%jfz8.45769$Ze.7564@afrodite.telenet-ops.be>
Date: Mon, 29 Apr 2002 17:23:07 GMT
NNTP-Posting-Host: 213.224.237.71
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1020100987 213.224.237.71 (Mon, 29 Apr 2002 19:23:07 MET DST)
NNTP-Posting-Date: Mon, 29 Apr 2002 19:23:07 MET DST