I have a string that contains 3 numbers separated by commas (for example "10,32,52") and I would like to store each number in 3 different int variables, but I just know how to store the first one using the code below. Can you tell me please how can I store the next two? Thanks in advance.
string numbers= "10,32,52";
string first_number_s= numbers.substr(0,2);
int first_number_n= stoi(first_number_s);