String Subscript Out Of Range

Solved! Thanks
Last edited on
The sizeof trick that you use to calculate the length only works on arrays. std::string has a size() member function that you can use instead.
http://www.cplusplus.com/reference/string/basic_string/size/
Topic archived. No new replies allowed.