Hi All,
I want to know that how does the string differ from char* and why was the string class needed in C++ while char * was already there?
Can anyone help me please?
Printable View
Hi All,
I want to know that how does the string differ from char* and why was the string class needed in C++ while char * was already there?
Can anyone help me please?
The string class comes with many functions that make its use easier than char pointers
The usage of the string container is far more intuitive in comparison to dealing with character arrays/pointers making text processing much more robust and far less error prone.
Blah... blah... blah...
cross posted -- see Salem's' link