String out of range c++
when I try to check if the str[index] equal to I got exception String out of range std::string Test::getTheText(std::string str) { int index = 7; string text; cout << str[index] ...