Mail Archives: djgpp/2000/03/01/20:16:03
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 -