edit
edit
Last edited by cmoored; 11-19-2013 at 09:57 PM.
Unfortunately, at the moment you have failed to initialise (or even declare) the array properly and are not a position to check whether or not your shiftArray function works even after you implement it.
Start at the beginning: write a program to initialise and print the array. Once you have that done correctly, think about simple cases of shifting and then implement them. As you investigate the problem further, you should eventually be able to develop and proper algorithm for the shifting that you want to do and implement it.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)