String Subscript Out Of Range

Jan 28, 2014 at 1:00pm
Solved! Thanks
Last edited on Jan 28, 2014 at 9:06pm
Jan 28, 2014 at 1:06pm
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.