What are the major differences between (C strings) and the (string) class?
C++ help with strings?
The difference between living in a universe with a sun and one with eternal darkness.
string class is
easily expanable
easily copyable
has built in equality operators
has a multitude of insert, replace, etc., methods;
has iterators and revere iterators
can be passed to many stardard library algorithms
just off the top of my head.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment