A string is entered : 22:13:44
It is entered together , with ":", just like that " 22:13:44 " It is necessary to process this line and take these numbers, that is, create 3 variables a, b, c And write the values necessarily in integer variables. That is, the result should be int a = 22, b = 13, c = 44;
Tell me, please, the code that will divide this input into such variables.
I tried to do this, but I got confused in the types of variables and in their processing.
int a, b, c; char delim; cin >> a >> delim >> b >> delim >> c;- Drawn Raccoon