#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char str[
99]=
"abaccdeff";
int strLength=strlen(
str);
int hashTable[
256]={
0};
for(
int i=
0;i<strLength;++i){
hashTable[
str[i]]++;
}
for(
int j=
0;j<strLength;++j){
if(hashTable[
str[j]]==
1){
printf(
"%c",
str[j]);
break;
}
}
return 0;
}
转载请注明原文地址: https://ju.6miu.com/read-500003.html