Just wondering, for character of arrays, you can set the delimiter manually like
cin.getline(cha racter array, size, delimeter)
But for the STL string, apparently, you have to use the following form of getline
getline(cin, string)
So my question is, is there a way to set the delimeter using the STL string without converting it to character array?
cin.getline(cha racter array, size, delimeter)
But for the STL string, apparently, you have to use the following form of getline
getline(cin, string)
So my question is, is there a way to set the delimeter using the STL string without converting it to character array?
Comment