I need to split up an input, into 5 different int variables. the format is like so: aabbcc-ddde. I need to take 2, 2, 2, 3 and 1 of the numbers, and assign them to int variables. But how do I do that?
int day, month, year, ctrlnr, gender;
cout << "Indtast venligst cprnr. i formatet ddmmċċ-cccc \n";
cin >> input;
day = ?
month = ?`