invece di cin.get , prova a utilizzare getchar ()