How are you justifying a) including a whole separate header file for a single function and b) doing that for a function that has an equivalent defined in istream and all its derivatives(cin) and c) calling that portable?
cin.get() does the trick for you, really.