69,382
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <stdlib.h>
void str(const char* pIn, char* pOut)
{
char used[256] = {0};
while (*pOut=*pIn)
{
if (!used[*pIn])
pOut++;
used[*pIn++] = 1;
}
}
int main()
{
char sz[] = "hello,world!!!\n";
str(sz, sz);
printf(sz);
return 0;
}