compilation problem
Robert Jan Schaper
r.schaper at chello.nl
Thu May 3 09:12:55 BST 2001
> I have the compilation error : "cannot convert "const char *" to "char *"
> in assignment"
> What I do is something like this :
> < void test(const char *txt)
> {
> char *s;
This is your bug, just make it a pointer to a const char and your problem
will go away. Remember that 'const char *s ' is not the same as a 'char *
const s' so you can change the value of s.
>
> s=txt;
> while (strlen(s)>0)
> {
> ....
> s++;
> }
> }
>
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list