1.find_first_of
Size_type find_first_of (const basic_string &STR, Size_type index = 0);
Size_type find_first_of (const char *STR, Size_type index = 0);
Size_type find_first_of (const char *STR, SIZE_TYPE index, Size_type num);
Size_type find_first_of (char ch, size_type index = 0);
Finds the first character in a string that matches a character in Str and returns its position. Search starts with index and returns if not found String::npos Note: NPOs represents the maximum value of size_t
Finds the first character in a string that matches a character in Str and returns its position. Search starts with index and searches for num characters up to a maximum. If you don't find it, return to String::npos.
Finds the first character in a string that matches CH, and returns its position. The search starts at index.
2.std::string line Line.erase (pos,num); Delete num characters from the POS position in a string
C + + about string summarization (continuous update)