+ 2

What is the difference between ctime and time header files?

When I tried to include the file ctime then an error is came, unable to open include file 'ctime.h' , but I replaced it with time.h. then it has no error. both have some working.

3rd Jan 2017, 3:16 PM
Nawaj Shareef
Nawaj Shareef - avatar
3 Respuestas
+ 3
ctime is cpp library, time.h is c library
3rd Jan 2017, 3:37 PM
Jakub Stasiak
Jakub Stasiak - avatar
+ 2
the thing is theres no ctime.h lib. Theres only ctime or time.h
3rd Jan 2017, 3:54 PM
Jakub Stasiak
Jakub Stasiak - avatar
+ 1
it is not a right reason , jakub, because turbo C++ IDE support both languages, c and c++, I had tried this.
3rd Jan 2017, 3:41 PM
Nawaj Shareef
Nawaj Shareef - avatar