TheMassiveChipmunks solution should work but I think Athar meant that you should pass month to renameMonths() by reference. Change line 1 in your code to: void renameMonths(string& month)
Take the time to learn the basics or you will be struggling a lot!