Minor : swaped getchar() to cin.get()