Konu: saat
Tekil Mesaj gösterimi
Alt 24/04/07, 00:56   #1
gokhanaygun
Tuğgeneral
 
gokhanaygun - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Apr 2007
Bulunduğu yer: VAN
Yaş: 38
Mesajlar: 924
Tecrübe Puanı: 27 gokhanaygun is a splendid one to behold gokhanaygun is a splendid one to behold gokhanaygun is a splendid one to behold gokhanaygun is a splendid one to behold gokhanaygun is a splendid one to behold gokhanaygun is a splendid one to behold gokhanaygun is a splendid one to behold
Standart saat

uses crt,dos;
type
saat=string[8];
var
reg:registers;
h,m,s,w,time:saat;
i:integer;
begin
clrscr;
repeat
reg.ax:=$2c00;
intr($21,reg);
str(hi(reg.cx):2,h);
str(lo(reg.cx):2,m);
str(hi(reg.dx):2,s);
w:=h+':'+m+':'+s;
for i:=1 to length(w) do
if w[i]=' ' then w[i]:='0';
gotoxy(90,10); write(w);
delay(500);
clrscr;
until keypressed;
readkey;
end.
gokhanaygun isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Konu Sayısı: 187