Hello..
I've been programming for some time, but I have never been using c++ strings before.. Im not sure when should I use them and how? Always when I have to deal with char *? Im a little confused since im used to char *sth = new char[BUF_SIZE]; ..
Thanks for help



LinkBack URL
About LinkBacks



C++ strings are a replacement for C strings. They're safer, easier, and can do more with less code. You can even get a C string from a C++ string with the c_str member function for any old libraries that use C strings.