+ 1

How i can make to display time from my computer using a c++ program?

Time synchronization

22nd Jan 2017, 3:03 AM
vishnu
vishnu - avatar
2 Réponses
+ 1
using header file "ctime". #include <ctime> #include <iostream> int main() { std::time_t time=std::time(NULL); std::cout<< std::asctime (std::localtime(&time)); }
22nd Jan 2017, 3:40 AM
vishnu
vishnu - avatar
+ 1
Thank you for answering @mohd Fitri
22nd Jan 2017, 4:13 AM
vishnu
vishnu - avatar