Ŀ

գҪıйص䡣
һrepeat (0<repeat<10)repeat㣺
һַһԻسַ80ַַвҸַҵַַӦ± (±0ʼ)"Not Found"
ʾΪ˵
룺
2		(repeat=2)
m               (ַ'm')
programming	(ַ"programming")
a		(ַ'a')
1234		(ַ"1234")

index = 7     	('m'"programming"жӦ±7)
Not Found    	("1234"û'a')



#include "stdio.h"
#define MAXLEN 80
int main(void)
{ 
    char cc, ch;
    char str[MAXLEN];
    int count, flag, i, index;
    int repeat, ri;

    scanf("%d", &repeat);
    getchar();
    for(ri = 1; ri <= repeat; ri++){
        cc = getchar();
        getchar();

        i = 0;
        while((ch = getchar()) != '\n'){
            str[i++] = ch;
        }
        str[i] = 0;
/*---------*/
        if(flag != 0)  
            printf("index = %d\n", index);
        else 
            printf("Not Found\n");
    }
}
