Hello I have no idea how to do this can someone please help

Write your question here.

1
2
3
4
  Using the displaytime.cpp ->
Make it output the correct time using a 12-hour system,
AND, take in user input for their time zone and display
that accordingly. (Time zone in the form if +/- hours from GMT, via cin)


http://www.cplusplus.com/reference/ctime/

For your user input just store the value in cin, and add/subtract it from the time you print.

i.e.
cout << (current_time +/- offset_val);
Last edited on
Topic archived. No new replies allowed.