--- mark taye <[EMAIL PROTECTED]> wrote: > Does anyone know how to assign a string to a char * > ? > Example: > > string foo; > char *bar; > > or can the char pointer be converted to a string > type before the assignment? > bar = new char[foo.size()+1]; strcpy(bar, foo.c_str());
But why would you want to use bar when foo has so much more capability? Ray ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
