Ev Bilgisayarı  


Geri Dön   Ev Bilgisayarı > Program > Programlama

Programlama C,Delphi,Visual Basic ve diğer tüm programlama dilleri hakkında dökümanlar ve bilgilerin merkezi

Saat - Pascal Örnek Kodlar
Program katagorisindeki Programlama bölümünde açılan Saat - Pascal Örnek Kodlar adlı konudan; Code: PROGRAM sezer; USES CRT,GRAPH; label frst; procedure alarm; begin sound(1000);delay(50);sound(1000);delay(50);nosound; end; VAR GD,GM:INTEGER; y,k,i:integer; key:char; lH1,lM1,lSC1,gen :string; lH,lM,lSC{:string;}, H,M,SC:integer; st,s1,s2,s3:string; BEGIN clrscr; detectgraph(gd,gm); INITGRAPH(GD,GM,'\TP\BGI\'); h:=0;m:=0;sc:=0; for i:=0 to 60 ...


Cevapla
 
LinkBack Konu Seçenekleri
Eski 1.02.2006, 15:09       #1
Admin
 
Mesajlar: 1.976
Puan: 6015
Tanımlı Saat - Pascal Örnek Kodlar



Code:
PROGRAM sezer;
USES CRT,GRAPH;
label frst;
procedure alarm;
begin
sound(1000);delay(50);sound(1000);delay(50);nosound;
end;

VAR
GD,GM:INTEGER;
y,k,i:integer;
key:char;

lH1,lM1,lSC1,gen :string;
lH,lM,lSC{:string;},
H,M,SC:integer;

st,s1,s2,s3:string;

BEGIN
clrscr;
detectgraph(gd,gm);
INITGRAPH(GD,GM,'\TP\BGI\');
h:=0;m:=0;sc:=0;
for i:=0 to 60 do
begin
delay (3500);
if i=60 then
begin
inc(k);i:=0;
end;
if k=60 then begin
inc(y);k:=0;
end;
str(y:0,s1);
str(k:0,s2);
str(i:0,s3);
st:=s1+':'+s2+':'+s3;
cleardevice;
settextstyle(4,0,20);
outtextxy(150,250,st);
outtextxy(10,100,'sezer');
if y>12 then
y:=1;

if keypressed then key:=readkey;
   case key of
      #9:begin
        frst:
        OutTextXY(1,1,'Enter the Alarm Time:hours,minute,second');
        Readln(lh,lm,lsc);
        if (lh in[0..23])or(lm in[0..60])or(lsc in[0..60])then
        begin
        str(lh:0,lh1);
        str(lm:0,lm1);
        str(lsc:0,lsc1);
        gen:=lh1+':'+lm1+':'+lsc1;

        OutTextXy(textWidth('Enter the Alarm Time:hours,minute,second')+1,
        TextHeight('Enter the Alarm Time:hours,minute,second')+1,gen);
        end
        else
        goto frst;
      end;
      #27:halt(0);
      end;





delay(5000);

if (y=lh)and(k=lm)and(i=lsc) then
Alarm;

end;
end.
__________________
 
Alıntı ile Cevapla
Eski 6.02.2007, 05:39       #2
Bakan
 
d4erth - ait Avatar
 
Mesajlar: 273
Puan: 4957
Tanımlı

saol teşekkür edrm paylaşm için...
 
Alıntı ile Cevapla
Cevapla


Konuyu toplam 0 üye ve 1 ziyaretçi okuyor
 
Konu Seçenekleri

Yetkiler
Yeni konu açma yetkisi yoktur
Yeni mesaj gönderme yetkisi yoktur
Yeni eklenti gönderme yetkisi yoktur
Mesaj düzenleme yetkisi yoktur

BB Kodu: Açık
Smileler: Açık
[IMG] Kodu: Açık
HTML Kodları: Kapalı
Trackbacks: Açık
Pingbacks: Açık
Refbacks: Açık

Görüntülemek istediğiniz bölümü seçiniz

Benzer Konular
Konu Konuyu Açan Forum Cevaplar Son Mesaj
başlat - çalıştır 'a yazılabilecek KODLAR turk11 İşletim Sistemi Genel 4 23.07.2007 23:43
Netbeans J2ME örnek uygulama meydan Programlama 0 13.07.2007 18:50
Saat ama nasıl saat zurna Tüm Konular 4 3.05.2006 15:18
Öss Örnek sorular ProLive Tüm Konular 2 1.03.2006 13:29
Mors alfabesi - C / C++ Örnek Kodlar ProLive Programlama 3 27.02.2006 13:47


Bütün zaman ayarları WEZ +2. Saat: 23:09


Powered by vBulletin® Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
eXTReMe Tracker

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59