Geri git   Van.GEN.TR Forum | Yerel Van Forumu > Bilgisayar > Programlama > Pascal

Cevapla
 
Konu Araçlarý Stil
Alt 24/04/07, 00:55   #1
gokhanaygun
Tuðgeneral
 
gokhanaygun - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Apr 2007
Bulunduðu yer: VAN
Yaş: 36
Mesajlar: 924
Tecrübe Puanı: 26 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 iþçi takip programý

(*copright by gökhan aygün*)
uses crt;
type
kayit=record
no,soy,isim,maas,gun,avans:string[30];
f:char;
end;

var
dosya:file of kayit;
kay:kayit;
h,i,s,k,kod:integer;
HH,ara:string[30];
t:string;

tus:char;
label
MENU,ekayit,eliste,earama,ecikis;


begin
MENU:
clrscr;
textbackground(red);
clrscr;
textcolor(white);

gotoxy(20,3);writeln('˜ž€˜ TAKIP PROGRAMINA HOSGELDINIZ...');
gotoxy(30,10);writeln('1-KAYIT');
gotoxy(30,11);writeln('2-LISTELEME');
gotoxy(30,12);writeln('3-ARAMA');
gotoxy(30,13);writeln('4-SILME');
gotoxy(30,14);writeln('5-BILGI DEGISIKLIGI');
gotoxy(30,15);writeln('6-CIKIS');
gotoxy(10,20);write('LUTFEN YAPACAGINIZ ISLEMIN NUMARASINI GIRINIZ (1/2/3/4/5/6)');readln(h);
if h=1 then goto ekayit;
if h=2 then goto eliste;
if h=3 then goto earama;
if h=6 then goto ecikis;

ekayit:
assign(dosya,'kadir.txt');
{$i-} reset(dosya);kod:=ioresult;{$i+};
if kod<> 0 then rewrite(dosya);
repeat
clrscr;
gotoxy(30,10);write('NUMARA >');readln(kay.no);
if kay.no='' then GOTO MENU;
gotoxy(30,11);write('ADI >');readln(kay.isim);
gotoxy(30,12);write('SOYADI >');readln(kay.soy);
gotoxy(30,13);write('MAAS >');readln(kay.maas);
gotoxy(30,14);write('AVANS >');readln(kay.avans);
gotoxy(30,15);write('€.GšN >');readln(kay.gun);
gotoxy(20,25);writeLN('BILGI DOSYAYA KAYDEDILSIN MI? (E/H)') ;
repeat
tus:=upcase(readkey);
until tus in ['E','H'];
if tus='E' then
begin
kay.f:='*';
seek(dosya,filesize(dosya));
write(dosya,kay);
end;
textcolor(31);
writeln('ANA MENUYE DONMEK ICIN BIR TUSA BASINIZ...');READLN(HH);
until KEYPRESSED;
close(dosya);
GOTO MENU;


earama:
assign(dosya,'kadir.txt');
{$i-} reset(dosya);kod:=ioresult;{$i+};
if kod<>0 then
begin
writeln('DOSYA BULUNAMADI...');
tus:=readkey;
halt;
end;
repeat
clrscr;
gotoxy(20,13);write('ARADIGINIZ KISININ NUMARASINI GIRINIZ>');readln(ara);
if ara='' then exit;
for i:=0 to filesize(dosya)-1 do
begin
seek(dosya,i);
read(dosya,kay);
if (kay.f='*') and (kay.no=ara) then
begin
clrscr;
gotoxy(30,10);writeln('NUMARASI >',kay.no);
gotoxy(30,12);writeln('ADI >',kay.isim);
gotoxy(30,13);writeln('SOYADI >',kay.soy);
gotoxy(30,14);writeln('MAASI >',kay.maas);
gotoxy(30,15);writeln('AVANSI >',kay.avans);
gotoxy(30,16);Writeln('€.GšN >',kay.gun);
writeln;
gotoxy(20,20);write('ARADIGINIZ KAYIT BU MU? (E/H)');
repeat
tus:=upcase(readkey);
until tus in ['E','H'];
if tus='E' then exit;
end;
end;
writeln;
gotoxy(27,15);writeln('ARADIGINIZ KAYIT YOK...');
tus:=readkey;
until 1=2;
close(dosya);
writeln('ANA MENUYE DONMEK ICIN BIR TUSA BASINIZ...');
READKEY;
GOTO MENU;

eliste:
assign(dosya,'kadir.txt');
{$i-} reset(dosya);kod:=ioresult;{$i+};
if kod<>0 then
begin
writeln('DOSYA BULUNAMADI...');
tus:=readkey;
halt;
end;
clrscr;
writeln(' NUMARA ADI SOYADI MAAS AVANS €.GUN');
writeln('========================================= ====================================');
s:=2;
k:=0;
for i:=0 to filesize(dosya)-1 do
begin
seek(dosya,i);
read(dosya,kay);
if kay.f='*' then
begin
s:=s+1;
k:=k+1;
gotoxy(3,s);write(kay.no);
gotoxy(16,s);write(kay.isim);
gotoxy(35,s);write(kay.soy);
gotoxy(40,s);write(kay.maas);
gotoxy(45,s);write(kay.avans);
gotoxy(50,s);write(kay.gun);
end;
if s>18 then
begin
gotoxy(20,21);
write('DIGER SAYFA ICIN BIR TUSA BASINIZ...');
tus:=readkey;
s:=2;
clrscr;
end;
end;
gotoxy(20,21);
write('LISTELENECEK KAYITLAR BITTI...');
tus:=readkey;
close(dosya);
gotoxy(15,23);writeln('ANA MENUYE DONMEK ICIN BIR TUSA BASINIZ...');
READKEY;
GOTO MENU;
ecikis:
writeln('Cikis');
END.
gokhanaygun isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Konu Sayýsý: 187
Alt 20/06/08, 15:24   #2
firari
Mareþal
 
firari - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Sep 2007
Mesajlar: 5.835
Tecrübe Puanı: 104 firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute firari has a reputation beyond repute
Standart

Paylaşım için tşkler…
__________________



firari isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Konu Sayýsý: 613
Takýmýnýz:
Alt 30/06/08, 01:57   #3
Mattet
Cumhurbaþkaný
 
Mattet - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: May 2008
Bulunduðu yer: van
Mesajlar: 7.027
Tecrübe Puanı: 48 Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute
Standart

teŞekkÜrler PaylaŞim İİÇİn
__________________





Düþmeden Bulutlarda Koþmam GereK !
Mattet isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Konu Sayýsý: 866
Alt 30/06/08, 01:57   #4
Mattet
Cumhurbaþkaný
 
Mattet - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: May 2008
Bulunduðu yer: van
Mesajlar: 7.027
Tecrübe Puanı: 48 Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute Mattet has a reputation beyond repute
Standart

teŞekkÜrler PaylaŞim İİÇİn
__________________





Düþmeden Bulutlarda Koþmam GereK !
Mattet isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Konu Sayýsý: 866
Alt 31/07/08, 15:38   #5
Neutralizer
Yasaklý kullanýcý
 
Neutralizer - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Jan 2008
Bulunduðu yer: Ýstediðin yerden
Mesajlar: 1.883
Tecrübe Puanı: 0 Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute Neutralizer has a reputation beyond repute
Standart

paylaşım için tşkrlr
Neutralizer isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Konu Sayýsý: 316
Takýmýnýz:
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Yetkileriniz
Yeni Mesaj yazma yetkiniz Aktif deðil dir.
Mesajlara Cevap verme yetkiniz aktif deðil dir.
Eklenti ekleme yetkiniz Aktif deðil dir.
Kendi Mesajýnýzý deðiþtirme yetkiniz Aktif deðildir dir.

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Gitmek istediğiniz klasörü seçiniz


Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 01:00 .


Powered by vBulletin
Copyright © 2000-2007 Jelsoft Enterprises Limited.
Sitemap
6, 5, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 113, 16, 17, 18, 19, 81, 20, 27, 22, 23, 24, 25, 26, 48, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 136, 40, 58, 45, 42, 44, 46, 47, 53, 54, 55, 56, 57, 59, 60, 70, 61, 62, 63, 64, 65, 66, 68, 69, 71, 72, 74, 75, 76, 77, 78, 79, 80, 82, 83, 96, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 98, 97, 100, 101, 102, 103, 106, 104, 105, 112, 109, 108, 107, 110, 111, 114, 115, 118, 116, 117, 119, 148, 154, 124, 165, 122, 120, 123, 121, 150, 153, 125, 128, 129, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 151, 149, 202, 175, 164, 152, 167, 155, 156, 157, 158, 159, 160, 161, 162, 163, 195, 169, 166, 168, 170, 171, 172, 199, 174, 173, 196, 200, 176, 177, 180, 178, 179, 182, 189, 187, 184, 186, 191, 192, 193, 194, 197, 198, 201, 203, 229, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 236, 231, 232, 233, 234, 235, 237, 240, 239, 241, 243, 242, 244,