delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/01/20:16:03

Newsgroups: comp.os.msdos.djgpp
From: manni DOT heumann AT gmx DOT de (Manni Heumann)
Subject: Re: cpp String before
References: <38BD4285 DOT 252DC5FD AT americasm10 DOT nt DOT com>
X-Newsreader: News Xpress 2.01
Date: Wed, 01 Mar 2000 16:43:56 GMT
NNTP-Posting-Host: dhcp33-226.uni-bielefeld.de
Message-ID: <38bd48f5_1@news.uni-bielefeld.de>
X-Trace: 1 Mar 2000 17:44:37 +0200, dhcp33-226.uni-bielefeld.de
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <38BD4285 DOT 252DC5FD AT americasm10 DOT nt DOT com>, ichapman AT nortelnetworks DOT com wrote:
>Hi all,
>    I have this code segment that's not right.
>
>String BUFFER = buffer;
>char z[100];
>z=BUFFER.at(0, 2);         //gives error
>z=BUFFER.before(",");   //gives error
>
>Error incompatible types in assignment of `substring' to char[100]
>
>    I took the code straight out of libgpp.info so I'm a bit puzzled as
>to what I've not understood.  Any help or pointers would be greatly
>appreciated.
>
>        Regards Ian.
>
>
>
In libgpp.info z is not a char pointer, but a String!


--

Manni

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019