Algorithm to rotate data

The Hardest thing I have to do is "Unlearn" what I learned to do in basic.. This, compounded by several years with Basic Stamps and the Picaxe and their severe limitations to finally drive me here to learn what a real, embeddable and useful controller can be and how to work with it as well.
Because of both my engineering background and my basic familiarity with basic as I wrote apps to run on a '386 from the command line with Micro$oft's PDS 7.1 and my later experience designing process controllers for the Irrigation industry (I specified and tested but did not write the Pic firmware)..
learning C and C++ has been a battle that I am slow to win but winning it I am.

Bob
{Edit RKJ}