Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copiar en archivo hola.cpp
- // C++ program to display "date"
- // Header file for input output functions
- #include <ctime>
- #include <stdio.h>
- #include <cstring>
- int main()
- {
- time_t ahora = time(0);
- printf("fecha mlseconds: %lu\n", ahora);
- char* fecha = ctime(&ahora);
- printf("Hoy es el dia: %s", fecha);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment