Wrong forum, correct would be Help->General.
Why don't you just simply store the previous position? If you don't know how to do that, you should learn some more C++ before you approach game programming...
Anyway, I would model the snake as a sequence (STL container) of segments. Each time step, you remove the tail segment, and insert a new head segment at the front. You don't need to relocate segments.