Can someone please tell me what the best practice / correct way of doing
this is? I want the error I'm getting to go away.
char* myCString = "My C string";
I think I've used one of these before to avoid the message... but it just
seems a cludgy way to do things.
// This
char * myCString = string("My C string").c_str()
// Or this
char * myCString;
strcpy(myCString, "My C string");
AJ ONeal
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list