Anonymous
public text v1 · immutablelegeek@anubis /home/geek/ncurses $ cat plop.c
#include <stdio.h>
main()
{
int arret=0;
int h=0;
int m=0;
int s=0;
while(arret<1) /** arret est a affecter au moment ou tu veux **/
{
if(s==59)
{
s=0;
if(m==59)
{
m=0;
if(h==23)
{
h=0;
}else {
h++;
}
}else {
m++;
}
}else {
s++;
}
printf("chrono %d : %d : %d\n",h,m,s);
sleep(1);
system("clear"); /** C'est moche. oriente toi vers du ncurses **/
}
}