A
andrew browning
here is the constructor:
mystring(const char str[] = "");
here are the private variables:
value_type *data; //Pointer to partially filled dynamic array
size_type used; //How much of array is being used
size_type capacity; //Current capacity of the mystring
here is the function:
const char& operator [](size_type index) const {return data[index];}
i get a segmentation error when i call it from main. can someone
please help... i'm having a time with this thing!
mystring(const char str[] = "");
here are the private variables:
value_type *data; //Pointer to partially filled dynamic array
size_type used; //How much of array is being used
size_type capacity; //Current capacity of the mystring
here is the function:
const char& operator [](size_type index) const {return data[index];}
i get a segmentation error when i call it from main. can someone
please help... i'm having a time with this thing!