- #1
linag96
- 4
- 0
I have a my_string.cpp and .h file. I am required to append string q to char c and append char c to string q
these are the following functions:
Private member functions:
Please help on writing the 2 operator functions
these are the following functions:
Code:
my_string my_string::operator+=(const my_string& q)
my_string my_string::operator+=(char c)
Code:
int capacity;
int size;
char *ptr;