bool stringToInt ( const string& s, int *num)

get the integer from the string s, e

Documentation

get the integer from the string s, e.g. " 2598 ", it may contain arbituary spaces in the front or end, but not in between digits otherwise, the first whole integer is read and returned, e.g. " 235 67" is returned as 235. if true is returned, the num variable contains a valid integer for use

alphabetic index hierarchy of classes


generated by doc++