g++ UNIX: cin.get() and accessint day info
Posted on 1997-06-03
> Could anyone email me help on using cin.get() on a unix system w/ g++?
> cin.get() seems to still wait for a return character. I would like to
> just grab one char (similar to how PINE needs only one control char to
> Our current project also requires the day-of-the-week.
> For example, If the user inputs "02/14/99" I need to know that that day
> is a Sunday. I have thought of computing the information, but was
> wondering if I can access the system (UNIX) within a c++ program to tell
> me the day-of-week.
> Help is greatly appreciated.
> Please reply via email. -Brett