char * or string

Hi

Excuse what may be some pretty simple or dumb questions over the next few weeks from me. My mentor at work has a history in embedded C and hasn't ever really touched C++. We're working on a project together and we have some work that inevitably involves strings.

With his C background, he doesn't like strings. He told me to use char * or const char * when working with a string in C++, however I was aware of the strings.h library.

Much like my previous question on arrays and vectors, should I use char * or string?

Thanks
Favour std::string over dynamically allocated C-style strings

C-style strings are less safe, and have no advantages over std::string
http://www.cplusplus.com/forum/beginner/182513/#msg894223
Topic archived. No new replies allowed.