+ 7
How can we output current date and time in cpp?
3 Respuestas
+ 6
https://code.sololearn.com/cq39zBVgvDfX/#cpp
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
time_t currTime = time(NULL);
printf("%s", ctime(&currTime));
return 0;
}
+ 8
Thanks AgentSmith