【C语言】 删除一个字符串中重复的字符

#include<stdio.h>
/*使用n=strlen(s)时加这个#include<string.h>*/
int main(void)
{
    char s[100];/*定义变量*/
    int i, j, n, k;
    printf("请输入一串有重复字符的字符串:
");
    gets_s(s);/*输入字符串*/
    for (n = 0; s[n] != '