C Code Skips Next Cin After Leaving Function Stack Overflow

C Code Skips Next Cin After Leaving Function Stack Overflow