Website Summary Files Commits Branches @commit @diff @stats
path: root / Week02 / Exercise06 / main.cpp
diff options
context:
space:
mode:
1 files changed, 13 insertions, 0 deletions
-rw-r--r--Week02/Exercise06/main.cpp13
diff --git a/Week02/Exercise06/main.cpp b/Week02/Exercise06/main.cpp
new file mode 100644
index 0000000..e1e6d58
--- /dev/null
+++ b/Week02/Exercise06/main.cpp
@@ -0,0 +1,13 @@
+#include <iostream>
+#include "time.h"
+
+// По условие не ни е поискана логика за главната функция,
+// но все пак е добра идея да се провери имплементацията
+int main() {
+ Time first = { 13, 4, 15 }, second = { 1, 59, 45 };
+ first.Advance(second);
+
+ std::cout << first.hour << ' ' << first.minutes << ' ' << first.seconds << std::endl;
+
+ return 0;
+}