c-string vs. string class objects

i was just wondering when should i use one over the other? should i always use c-strings since it is a part of c++ or should i use string objects since i can include them in console programming. btw im new to this so sorry if it's a dumb question
You should always use C++ strings (that is, std::string).
They're safe and easy to use.
Last edited on
c++ strings as in:

string myString;

right?
Yes.
except for structures right? when writing to a binary file don't all strings have to be c-strings?
No. You can write anything at all to file.
Topic archived. No new replies allowed.