changed to cin.get() because *nix