找出字符串中第一个只出现一次的字符
void HWoj(){
int book[130] = { 0 };
char* ptr = "asdfasdfo";
int len = strlen(ptr);
for (int i = 0; i < len; ++i)
{
++book[ptr[i]];
}
for (int i = 0; i < 130; ++i){
if (book[i] == 1)
cout << (char)i << " ";
}
cout << endl;
}