commit 03f1278ee3102e803e1f416613499f2a2feef478 parent b68564447469241913ae49d553acd5f7b7d2bc34 Author: mjkloeckner <martinjkloeckner@gmail.com> Date: Fri, 15 Mar 2024 13:27:27 -0300 Change tab for spaces Diffstat:
| M | solutions/ej12.cpp | | | 16 | +++++++++------- |
1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/solutions/ej12.cpp b/solutions/ej12.cpp @@ -2,15 +2,17 @@ #include <ctime> int main (void) { - unsigned long in_time_secs; + unsigned long in_time_secs; - std::cin >> in_time_secs; + std::cin >> in_time_secs; - time_t seconds(in_time_secs); - tm *p = gmtime(&seconds); + time_t seconds(in_time_secs); + tm *p = gmtime(&seconds); - std::cout << p->tm_yday << " days, " - << p->tm_hour << ":" << p->tm_min << ":" << p->tm_sec << std::endl; + std::cout << p->tm_yday << " days, " + << p->tm_hour << ":" + << p->tm_min << ":" + << p->tm_sec << std::endl; - return 0; + return 0; }
