Normas del foro

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Enero 07, 2009, 10:28:12
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Programacion  |  Programación  |  Carbide C/C#/C++ (Moderador: Fashion)  |  Tema: Como realizar un contador de tiempo 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Como realizar un contador de tiempo  (Leído 892 veces)
djmagic
Visitante
« en: Diciembre 15, 2004, 09:29:32 »

En línea
Ayla
Visitante
« Respuesta #1 en: Diciembre 20, 2004, 04:19:50 »

En línea
snoopytotes
Visitante
« Respuesta #2 en: Marzo 07, 2005, 06:23:03 »

SI NO ME EQUIVOCO ES ESTO ALO QUE TE REFIERES


#INCLUDE<STDIO.H>
#INCLUDE<CONIO.H>

int a, b, c, d;
main ()
{

for(a=0; a<=24; a++)
for(b=0; b<=60; b++)
for(c=0; c<=60; c++)
for(d=0; d<=1000; d++)
{
//aqui es la ubicacion del contador
gotoxy(25,30);
printf("%d:%d:%d:%d:",a,b,c,d);
}
getche ();
return 0;
}


espero que te sirva

adios
En línea
J@Ker Lo10
Habitual
*****
Desconectado Desconectado

Mensajes: 201


'LA PRimeR @ VivE' J @Ker LOlo

???? ???? ????
Ver Perfil
« Respuesta #3 en: Marzo 25, 2005, 09:12:46 »

MIRA ESTA ESTRUCTURA YA VIENE PREDEFINIDA EN LA LIBRERIA DE TIME.H
YA CON ELLA HICE UN AFUNCIONA SOLO MANDALA  LLAMAR
Y ESO ES TODO, Y RESPONDE A TU RESPUESTA POR KE TIENE TODO LO KE PIDES....

//FUNCION PARA VER LA HORA
void VerTiempo(void)
{
   for(int i=1;i<=5;i++)
   {
    struct  time tiempo;
    gettime(&tiempo);

    horas= tiempo.ti_hour;
    minutos=tiempo.ti_min;
    segundos=tiempo.ti_sec;
    delay(1200);
   gotoxy(28,5);
   cout<<"*Hora de jaker_lolo inicio* "<<horas<<":"<<minutos<<":"<<segundos;

   }

}


Saludos y bye...
En línea

El ConoCIMIenTo no lleGA poR si solo,
soLO kE el MEdio pARA oBteNERlo es ..........
Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Programacion  |  Programación  |  Carbide C/C#/C++ (Moderador: Fashion)  |  Tema: Como realizar un contador de tiempo « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.7 | SMF © 2006-2007, Simple Machines LLC