Ŀ

գҪıйص䡣
һ repeat (0<repeat<10) repeat 㣺
һַ strһַ cַ str гֵַ c ɾ
Ҫ岢údelchar(str,c), Ĺǽַ str гֵ c ַɾβstrַָ룬βccharvoid
ʾΪ˵

3               (repeat=3
happy new year  (ַ"happy new year")
a               (ɾַ'a')
bee             (ַ"bee")
e               (ɾַ'e')
111211          (ַ"111211")
1               (ɾַ'1')

result: hppy new yer    (ַ"happy new year"еַ'a'ɾ)
result: b               (ַ"bee"еַ'e'ɾ)
result: 2               (ַ"111211"еַ'1'ɾ)



#include<stdio.h>
void main()
{
    char c;
    char str[80];
    int repeat, ri;
    void delchar(char *str, char c);

    scanf("%d", &repeat);
    getchar();
    for(ri = 1; ri <= repeat; ri++){
        gets(str);
        scanf("%c", &c);
        getchar();
/*---------*/
        printf("result: ");
        puts(str);
    }
}

/*---------*/

