spellchain
2008-04-11 09:07:27 UTC
I've got a big project that asks me to input a binary number.
The program has to have an option that will shift the values of the array.
Asking me to do this basically:
"3. ShiftLeft
a. Shift the numbers in the array left (mimicking the shift left operator). Note: You will not use the
<< operator to do this. Remember to pad with 0’s. Only shift one spot per function call."
Can someone assist me with this one? I've set up the file, menus, inputing, printing portion of the code but this part is driving me crazy. If I submit it at this stage my grade will be butchered. I basically need a function that'll shift the values of the array to left.
eg. The function should make 1.2.3.4.5.6 to 2.3.4.5.6.1 each time its called.
Thank you very much in advance.