Write a class My_String which is similar to the class vector but it has character (char) type data.
Your class should contain at least: overloaded operator [] to get access to string elements a copy constructor overloaded assignment operator (=) destructor overloaded string concatenation operator (+) to concatenate two strings.
I am getting a segmentation fault, any ideas on what I can do to improve my code would be greatly appreciated! Thanks in advance.
Look at your default constructor. You're trying to write to the first element of the array pointed to by name, but you haven't actually allocated any memory for the array, or initialised name to point to any memory.