电话簿折中查找

#include
#include
int main(){
    int p,j=0,k=9,i;
    char flag=0,flag2=0;
    char a[8];
    char inf[10][20]={"张三 一教","李四 二教","王五 三教","陈六 四教","邓七 五教",
    "许八 六教","方九 七教","赵十 八教","李二 九教","张一 十教"};
    char num[10][8]={"1111111","1111112","1111113","1111114","1111115",
    "1111116","1111117","1111118","1111119","1111120"};
    printf("请输入电话号码:\n");
    gets(a);
    for(i=0;i<8;){
        if(ka[i])k=p-1;
        else if(num[p][i]

你可能感兴趣的:(C和C++,c语言)