Need help getting input from string from a cstring of a class.

solved
Last edited on
I didn't look in detail, but I did notice that line 16 creates an array of 256 empty MyString objects. then you try to call MyString::read() by passing in the array of MyString objects and a char. However, MyString::read() is looking for a istream& and a char.

So, change inString to some form of istream, like std::cin or an ifstream, and see if that works.
Unfortunately no, it created more errors. I think what I am confused on is creating some type of string variable from the MyString class in my main and making it accept an input.
Last edited on
DON'T EDIT YOUR QUESTION! That is rude, selfish to others who might have learned from your problem

And VERY TROLLISH.
"And VERY TROLLISH. "

in relation to users like Depressed

aka traffic generator
aka oxygen thief
Topic archived. No new replies allowed.