lookjapan.COM - IRC ve mIRC dünyasının forumu!

lookjapan.COM - IRC ve mIRC dünyasının forumu! (http://www.lookjapan.com/index.php)
-   C ve C++ (http://www.lookjapan.com/forumdisplay.php?f=148)
-   -   Databes'de isim arama(C dili ile.) (http://www.lookjapan.com/showthread.php?t=3618)

Entrance 30 Haziran 2016 00:58

Databes'de isim arama(C dili ile.)
 
Kod:

#include <stdio.h>
#include <string.h>
/* by Entrance */
int main () {
         
          char isim[][10]={"TANER","SERHAT","SEFA","İSMAİL","İBRAHİM"};
          char ent[50];
          int bulundu=0;
         
          printf("Aramak istediginiz ismi giriniz : ");
          gets(ent);
          strupr(ent);
         
          for(int i=0; i<strlen(isim[i]); i++)
          {
                  if(!(strcmp(isim[i],ent)))
                  bulundu = 1;
          }
         
          if(bulundu == 1)
            printf("Aranilan isim bulundu : >(%s)", ent);
    else
      printf("***(%s) Veritabaninda boyle bir isim yok!",ent);
}



All times are GMT +3. The time now is 08:49.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.