Article View: alt.comp.lang.learn.c-c++
Article #454Re: Program crashes at end
From: Emmanuel Delahaye
Date: Thu, 30 May 2002 19:24
Date: Thu, 30 May 2002 19:24
20 lines
1700 bytes
1700 bytes
In 'borland.public.cpp.turbocpp', "Neal E. Coombes"
<Neal.Coombes@telus.net> wrote in news:3CF32E4B.5F6E812E@telus.net:
> How about:
> string(char a[])
> {
> head = new char[strlen(a)];
head = new char[strlen(a) + 1];
> strcpy(head, a);
> }
--
-ed- emdel at noos.fr
FAQ de f.c.l.c : http://www.isty-info.uvsq.fr/~rumeau/fclc/
C-library: http://www.dinkumware.com/htm_cl/index.html
"Mal nommer les choses c'est ajouter du malheur au monde."
Albert Camus.
Technical Details
Message-ID:
<Xns921ED9CE8352hsnoservernet@130.133.1.4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!e040.dhcp212-198-96.noos.FR!not-for-mailReferences:
<acv9rh$sopon$1@ID-31123.news.dfncis.de> <3CF32E4B.5F6E812E@telus.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114592,807a736b2ed72881
X-Google-Attributes: gid114592,public
X-Google-Thread: 109fba,807a736b2ed72881
X-Google-Attributes: gid109fba,public
X-Google-Thread: 114af8,807a736b2ed72881
X-Google-Attributes: gid114af8,public
X-Google-ArrivalTime: 2002-05-30 12:24:43 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!e040.dhcp212-198-96.noos.FR!not-for-mail
From: Emmanuel Delahaye <emdelNOSPAM@noos.fr>
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.turbocpp,comp.lang.c++
Subject: Re: Program crashes at end
Date: 30 May 2002 19:24:40 GMT
Organization: World Company
Lines: 20
Message-ID: <Xns921ED9CE8352hsnoservernet@130.133.1.4>
References: <acv9rh$sopon$1@ID-31123.news.dfncis.de> <3CF32E4B.5F6E812E@telus.net>
NNTP-Posting-Host: e040.dhcp212-198-96.noos.fr (212.198.96.40)
X-Trace: fu-berlin.de 1022786680 31843174 212.198.96.40 (16 [98276])
User-Agent: Xnews/L5
X-face: &^QSr'ztO>vp64+s[Gbcxojr0l\;9Xx9**b0B^{6:(mEW?9fU}\rU]rdLYEKSD9a0ok=\,iXcNFm{qN_}nFV8#m+pQyV-g3kLi0+?]0RS@`jDAE[QlWO}I2|eq6#M~%iuJO2xz