commit afd9ac3e9d345b6547b78c393d8be74438d85430 parent d2584289259314c56f1607190317345567e83abf 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; }
