#include<iostream> #include<ctime> using namespace std; int main() { time_t now = time(0); char *time = ctime(&now); cout << "Time of System is: " << time << endl; system("pause"); return 0; }
Quote:How to solve this error
To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)