亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

haha

  • 學生成績管理啊

    #include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp;  int time=0,i=0,j=0,add[80],k=0,m;  char *ch,  str[900];  m=strlen(pd);  if((fp=fopen("haha.txt","r"))==NULL)  {   printf("Cannot open this file\n");   exit(0);  } for(;!feof(fp);i++)  {  str[i]=fgetc(fp);   if(tolower(str[i])==tolower(pd[k]))    {k++;     if(k==m)     if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp))))     {      time++;      add[j]=i-m+1;      j++;      k=0;     }     else k=0;   }  }   if(time)  {   printf("The time is:%d\n",time);   printf("The adders is:\n");   for(i=0;i<j;i++)   printf("%5d",add[i]);   if(i%5==0)   printf("\n");   getch();   fclose(fp);   }   else   printf("Sorry!Cannot find the word(^_^)"); } main() { char pd[10],choose='y'; int flag=1;     while(flag)    {printf("In put the word you want to seqarch:");     scanf("%s",pd);     search(strlwr(pd));     printf("\nWould you want to continue?(Y/N):");     getchar();     scanf("%c",&choose);     if((tolower(choose))=='n')     flag=0;     else flag=1;    }   printf("Thanks for your using!Bye-bye!\n");   getch(); }

    標簽: 學生專用

    上傳時間: 2016-12-29

    上傳用戶:767483511

主站蜘蛛池模板: 雅安市| 邢台市| 台前县| 个旧市| 新竹市| 义马市| 连平县| 扎兰屯市| 镇远县| 东城区| 托里县| 天峻县| 天门市| 阿克| 湖州市| 遂平县| 台湾省| 高要市| 巫山县| 黄龙县| 上高县| 米林县| 湖南省| 泰来县| 青岛市| 珲春市| 峨眉山市| 旬阳县| 新绛县| 榕江县| 柏乡县| 阳春市| 富蕴县| 五峰| 隆化县| 遵义市| 合水县| 扎兰屯市| 汶川县| 兰溪市| 武乡县|