数组问题?
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
int hc[255] = {0};
string buf = "aabb ccdd";
int n = buf.length();
for(int i =0;i < n ;i++)
hc[buf[i]]++;//这里的hc[?]怎么解释啊?????
for(i =0;i<n;i++)
cout <<"buf[" << i <<" ]:"<< buf[i] << endl;
for(i =0;i<n;i++)
cout << buf[i] << ": "<< hc[buf[i]] << endl;
return 0;
}