#include <
Lcd.C>
#include <string.h>
int8 x=1,y=0;
void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DIV_BY_1,1,1);
set_tris_b(0xff);
output_b(0x00);
set_tris_c(0x00);
output_c(0x00);
lcd_init();
lcd_send_byte(0,0x01);
delay_ms(500);
lcd_send_byte(0,0x0c);
delay_ms(1000);
while(1)
{
if(input(pin_b0)==1){ lcd_send_byte(0,0x01); y=1; }
if(input(pin_b1)==1){ y=0;if(x==1){x=50;}else{x--;} lcd_send_byte(0,0x01); while(input(pin_b1)==1); }
if(input(pin_b2)==1){ y=0; x++; if(x==51){x=1;} lcd_send_byte(0,0x01); while (input(pin_b2)==1); }
if(y==0){
if(x==1){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");} if(x==2){ lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==3){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");} if(x==4){ lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==5){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");} if(x==6){ lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==7){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");} if(x==8){ lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==9){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");} if(x==10){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==11){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==12){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==13){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==14){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==15){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==16){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==17){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==18){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==19){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==20){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==21){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==22){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==23){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==24){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==25){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==26){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==27){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==28){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==29){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==30){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==31){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==32){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==33){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==34){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==35){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==36){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==37){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==38){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==39){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==40){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==41){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==42){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==43){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==44){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==45){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==46){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==47){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==48){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");}
if(x==49){lcd_gotoxy(1,1);printf(lcd_putc,"PRESENT = ");} if(x==50){lcd_gotoxy(1,1); printf(lcd_putc,"PRESENT = ");} }
if(y==1){
if(x==1){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==26){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==2){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==27){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==3){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==28){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==4){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==29){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==5){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==30){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==6){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==31){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==7){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==32){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==8){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==33){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==9){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==34){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==10){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==35){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==11){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==36){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==12){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==37){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==13){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==38){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==14){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==39){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==15){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==40){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==16){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==41){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==17){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==42){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==18){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==43){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==19){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==44){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==20){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==45){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==21){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==46){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==22){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==47){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==23){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==48){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==24){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==49){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}
if(x==25){ lcd_gotoxy(1,1); printf(lcd_putc,"PAST = ");} if(x==50){ lcd_gotoxy(1,2); printf(lcd_putc,"PERFECT = ");}}
}
-------------------------------------------------------------------------------------------
gördün mü
hem daha bu bitmemiş hali
-------------------------------------------------------------------------------------------
Bu program da 50 tane ingilizce kelime olacak
herhangi bir kelimeyi seçince sana 2. ve 3. hallerini gösterecek
Ben basit olur sanmıştım yazmaya başlayınca baya doldu gitti
--------------------------------------------------------------------------------------------
[Bu durumda ne yapılabilir arkadaşlar?
_________________________________________________
[size=10pt][size=10pt] Arka Arkaya mesaj atmak yasaktır.Lütfen yukarıdan DEĞİŞTİR seçeneğini kullanınız.[/size]
[/size]
Bu mesaj en son
" 4 haziran 2008 " tarihinde, saat
" 10:01 " itibariyle
görkem tarafından düzenlenmiştir.