diff options
| author | WiserJ <[email protected]> | 2021-10-26 15:12:38 -0700 |
|---|---|---|
| committer | WiserJ <[email protected]> | 2021-10-26 15:12:38 -0700 |
| commit | 16c3c9cb7e8b6f57d3b577505ff543b0377e157e (patch) | |
| tree | 36c421e00bd1356da395580f59e865e97a14ba03 | |
| parent | military (diff) | |
| download | cst116-lab4-jeffwoit-16c3c9cb7e8b6f57d3b577505ff543b0377e157e.tar.xz cst116-lab4-jeffwoit-16c3c9cb7e8b6f57d3b577505ff543b0377e157e.zip | |
hours display
| -rw-r--r-- | CST116F2021-Lab4/CST116F2021-Lab4.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CST116F2021-Lab4/CST116F2021-Lab4.cpp b/CST116F2021-Lab4/CST116F2021-Lab4.cpp index ebae03f..8973760 100644 --- a/CST116F2021-Lab4/CST116F2021-Lab4.cpp +++ b/CST116F2021-Lab4/CST116F2021-Lab4.cpp @@ -66,6 +66,8 @@ void DisplayTime(int& hours_display, int& minutes_display, int& seconds_display) hours_display += 12; cout << "\nThe current time in military time is " << setw(2) << setfill('0') << hours_display << setw(2) << setfill('0') << minutes_display << ":" << setw(2) << setfill('0') << seconds_display; + + cout << "\nThe current time in military time is " << setw(2) << setfill('0') << hours_display << ":" << setw(2) << setfill('0') << minutes_display << ":" << setw(2) << setfill('0') << seconds_display; } //p.214 |