excellent Posted January 17, 2009 Share Posted January 17, 2009 Arkadaşlar pascalda bir program yapıyorum proje olarak ve soru olarak şu karşıma çıktı bir isim girdirecem ve rakam girmesine izin verilmemeli bunu nasıl yapacam Link to comment Share on other sites More sharing options...
sertunc Posted January 17, 2009 Share Posted January 17, 2009 uses crt; var a:char; begin clrscr; write('isim giriniz:');readln(a); case a of '0'..'9':writeln('HATALI VERI GIRISI'); 'a'..'z':writeln('dogru gırısı'); end; readln; end. Link to comment Share on other sites More sharing options...
Surlarprensi Posted January 17, 2009 Share Posted January 17, 2009 isim alacağın değişkeni string yaparsan sayı kabul etmez zaten Link to comment Share on other sites More sharing options...
Kingpin Posted January 18, 2009 Share Posted January 18, 2009 char değişken tipi tek karakterlik değil mi yalnız. Ben hep string kullanıyorum. Link to comment Share on other sites More sharing options...
berksannn Posted January 19, 2009 Share Posted January 19, 2009 char değişken tipi tek karakterlik değil mi yalnız. Ben hep string kullanıyorum. string le hem harfleri hemde sayıları girdirsin ama tus kontrol korsun vetus kontrole bir aralık atarsın ve tus tus kontrole verdigin arada ise hata vermez ama o aralık ta degilse zaten yazmaz Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.