While working through various tutorials, the method of using strings in C++ has been to use an char type array, eg:
char mystring = "the string";
However, in the last thread i opened i found out that there is a string type available in C++, eg:
When including the cstring header file.
This however leads me to some confusion, for example is there a particular reason why you should use one method in favour of the other? All of the tutorials i have looked through use the array method with char. Was the string type added later along the C timeline?
I really would appreciate any input on this one, thank you.