Paste
Pasted as C++ by registered user xujiayu ( 4 years ago )
#include <stdio.h>
#include <conio.h>
#include <Windows.h>
int main()
{
int gio = 0 , phut = 0 , giay = 0;
while (true)
{
giay++;
if (giay == 60)
{
phut++;
giay = 0;
}
if (phut == 60)
{
gio++;
phut = 0;
}
printf("\n%d:%d:%d",gio,phut,giay);
//nhan vao phim esc tam dung
if(GetAsyncKeyState(VK_ESCAPE))
{
while (true)
{
if (GetAsyncKeyState(VK_SPACE))
{
break;
}
}
//nhan phim f8 de dung han
if (GetAsyncKeyState(VK_F8))
{
system("pause");
break;
}
} system("cls");
}
getch();
return 0;
}
Revise this Paste
Children: 118135