解析:
#include
#include <stdlib.h>
#include
#define N 255
static int tmp[N];
void delete_duplication(char *src)
{
int i, j;
int index;
int length = strlen(src);
for (i = 0; i < length; ++i)
{
/ code /
index = (int)(*(src + i));
tmp[index] += 1;
if (tmp[index] == 1)
{
/ code /
printf("%c", index);
}
}
}
int main(void)
{
/ code /
//char str[] = "asadasddasfadsgdfggdfgsdf";
char str[] = "qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm";
delete_duplication(str);
return 0;
}