Hello, I have this problem; it gets a runtime error. Why?
Qt Code:
vector<double> vec; string s =" 123213131313131331"; string::iterator it_s = s.begin(); for ( ; it_s != s.end(); ++it_s) { vec.push_back( (double) atof( (const char *) (*it_s) ) ); //runtime error }To copy to clipboard, switch view to plain text mode
Bookmarks