getting the time in C/C++ in a terminal application
I want to make a program that gets the system time in hours, minutes and seconds. Than I want to compare the time with the input from the user.
Could somebody give me an example of how to: - get the system time and print it on the screen
- compare two 'times'
Thanks in advance.