1. 1.
    +3 -1
    #include <string.h>
    2. include <stdio.h>

    struct inci{
    int yas;
    char entry[1005];
    char isim[30];
    } ar[1005];

    char kufur[30][30]={"anan","giberim","am","gotveren","ipne","huur","orosbu","vajis","ananin ami","ipne misin","amk"};
    int kufur_say=11;

    int process(char *root)
    {
    int t,z,v,ret=28;
    for(t=0;t<kufur_say;t++)
    {
    for(z=0;root[z];z++)
    {
    for(v=0;root[z+v] && kufur[t][v];v++)
    if(root[z+v]!=kufur[t][v])
    break;
    if(!kufur[t][v]) ret-=4;
    }
    }
    return ret;
    }

    main()
    {
    FILE *in,*out;
    in = fopen(" http://inci.sozlukspot.co...ry.php","r" ;);
    out= fopen(" http://inci.sozlukspot.co...ne=yap","w" ;);
    for(int t=0;fscanf(in,"%s",ar[t].entry)!=-1;t++)
    {
    fscanf(in,"%s",ar[t].isim);
    ar[t].yas = process(ar[t].entry);
    if(ar[t].yas<=18)
    {
    fprintf(out,"@%d liseli beyler!!n",t+1);
    }
    }
    return 0;
    }

    tablar, capslocklar gibildi
    ···
   tümünü göster