S
Slugger819
I'm creating a class SString , it should be just string
here what I have for the private data member
int count_;
int capacity_=0;
char* str = new char[capacity_];
and here is my constructor :
SString::SString (int capacity=50):capacity_()
{
capacity_=capacity;
}
but for some reason I'm getting a lots of errors
I have all the #includes statements and all the ";" please help me and
lemme know what I'm doing wrong
here what I have for the private data member
int count_;
int capacity_=0;
char* str = new char[capacity_];
and here is my constructor :
SString::SString (int capacity=50):capacity_()
{
capacity_=capacity;
}
but for some reason I'm getting a lots of errors
I have all the #includes statements and all the ";" please help me and
lemme know what I'm doing wrong