0

Whats wrong!!!

#include "ccc_time.h" #include <iostream> using namespace std; int main() { Time wake_up(7, 0, 0); wake_up.add_seconds(1000); cout << wake_up.get_hours()<< ":" << wake_up.get_minutes()<< ":" << wake_up.get_seconds() << "\n"; return 0 ; }

22nd Feb 2017, 11:12 PM
Abdelrhman Osama
Abdelrhman Osama - avatar
2 Respuestas
+ 2
BUILD ERROR THAT I FOUND: |fatal error: ccc_time.h: No such file or directory| SOLUTION: You need to create an additional header (*.h) file for your code.
22nd Feb 2017, 11:43 PM
Ashutosh Tripathy
Ashutosh Tripathy - avatar
+ 1
Do you mean #include <ctime> or #include <time.h> instead of #include "ccc_time.h"?
22nd Feb 2017, 11:17 PM
Isaac Salcedo
Isaac Salcedo - avatar