[C con Clase] Programa tiempo
alfredo ruiz hernandez
arh1990 en hotmail.com
Dom Nov 9 05:37:06 CET 2008
SALUDOS COMPAÑEROS DE C CON CLASE, ESTE PROGRAMA DA LA HORA Y FECHA DEL ORDENADOR PERO
YO NO LO ENTIENDO, POR LO QUE ME LES PIDO QUE ME LO REENVIAN CON ALGUNOS COMENTARIOS
EXPLICANDOLO CON ALGUNOS COMENTARIOS.
DE ANTEMANO GRACIAS.
#include <stdio.h>#include <time.h>#include <conio.h>
int main(){ time_t tiempo; char cad[80]; struct tm *tmPtr;
tiempo = time(NULL); tmPtr = localtime(&tiempo); strftime(cad, 80,"%H:%M.%S, %a de %b de %y", tmPtr );
printf( "La hora local es: %s\n", asctime(tmPtr) ); printf( "La hora y fecha locales son: %s\n", cad );
getch(); return 0;}
_________________________________________________________________
Realiza búsquedas en Internet y llévate hasta ¡Un Auto!
http://www.ganabuscando.com/Default.aspx
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.conclase.net/pipermail/cconclase_listas.conclase.net/attachments/20081108/a810ea0d/attachment.html>
Más información sobre la lista de distribución Cconclase