m.xcan Posted December 8, 2010 Share Posted December 8, 2010 #include<conio.h> #include<stdio.h> main(){ char a[10]; gets(a); for(int i=1;i<=10;i++){ if(a[i]=='a' || a[i]=='o' || a[i]=='u'){ for(int j=1;j<=10;j++){ if(a[j]=='e' || a[j]=='i'){ break; } } } } if(a[j]=='e' || a[j]=='i') printf("Uymaz"); else printf("Uyar"); getch(); } sondan 6. satır yani ifle başlayan satrda hata veriyor nedenini bilen arkadaşlar yardım edebilir mi?? Link to comment Share on other sites More sharing options...
ozyol Posted December 8, 2010 Share Posted December 8, 2010 if(a[j]=='e' || a[j]=='i') yanlış if(a[c]=='e' || a[j]=='i') doğru c'den anlamam amacım yardımcı olmak. Goole yazınca hatayı aldım. umarım işine yarar. Link to comment Share on other sites More sharing options...
m.xcan Posted December 8, 2010 Author Share Posted December 8, 2010 [quote name='ozyol' date='08 Aralık 2010 - 18:11 ' timestamp='1291832489' post='923470'] if(a[j]=='e' || a[j]=='i') yanlış if(a[c]=='e' || a[j]=='i') doğru c'den anlamam amacım yardımcı olmak. Goole yazınca hatayı aldım. umarım işine yarar. [/quote] Teşekkür ederim ama işe yaramadı Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.