incompatible types huh??
I'm getting a compiler error and was hoping someone could help me out. This is what I'm trying:
string id = ("id") // from the form, this is a CGI program
identity = id.c_str(); // want to make this a char array so I can use strstr().
It gives an error saying incompatible types in assignment of 'const char * to char'.
Anybody know what I should do. As far as I know it should work.
You can't use the equal sign to give it a value. Instead, use strcpy or something like that.
Or just use a pointer instead of an array.