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?
Code:int day, month, year, ctrlnr, gender; char input; cout << "Indtast venligst cprnr. i formatet ddmmċċ-cccc \n"; cin >> input; day = ? month = ?` etc.