//第一个只出现一次的字符
#include <iostream>
using namespace std;
int main()
{
int p[256];
memset(p,0,sizeof(p)/sizeof(int));
char *m_string="abaccdef";
char *key=m_string;
while (*key!=‘\0‘)
{
p[*(key++)]++;
}
key=m_string;
while (*key!=‘\0‘)
{
if (p[*key]==1)
{
cout<<*key;
}
key++;
}
return 0;
}第五题 第一个只出现一次的字符,布布扣,bubuko.com
原文:http://blog.csdn.net/oqqname/article/details/23266365