C-strings Vs Strings in C++
Hey all, first post.
So, i'm a newbie and working my way through C++ without fear. I've noticed that through the book the author has been declaring and intializing string variables in this way
char *new_string = "Freem";
I've got to the chapter on strings and have noticed that there is a lot of emphasis on c-strings and not the 'new' string type which declares and initializes like this.
string new_string = "Freem";
I've used java a little bit in the past and pre-C++ without fear have done have always used the 'new' string type.
What is the benifits of c-strings. I like the new string type and feel comfortable with it - should i continue with that or should i stop and start using the c-strings?
Thanks in advanvce