Im VERY new to C++ and programming in general.. so if this is all very simple... sorry.
Im having trouble trying to divide a number into 2 parts, basically, you have to enter a 7 digit number, and then split it into 2 other int variables, for example, if you entered 1234567, then you would split it so that p1 = 1234 and p2 = 567.
I cant figure out how to do this...
this is what the code looks like leading up to that part...
int id, a, b, p1, p2;
cout<<"Please enter your 7-digit ID: ";
Please help im really stuck....