bugbyte its not homework i code cuz i love it its my hobby i code for some months but sometimes i have problems so i cant do an easy task i could get point how to code exactly this and also what is auto num : ?
For 'auto' you will require to enable C++11 with your compiler (if not happened already).
It basically finds the Type for you. You could also write: for(char num : wholeNumber) ...
In that case, sorry for jumping to conclusions.