Originally posted by terrance11
string[int value]- returns a character, not a string. To return a string, you'd have to push the string into a vector.
so "hello nice world"
could be broken up like this, excuse me if I have errors, I'm doing it off the top of my head:
string hello = "hello nice world";
one.assign(hello, i, hello.size());
hello.erase(i, hello.size() - i);
string two = hello;
hello.erase(i, hello.size()- i);
string three = hello;
something like that...