让‘A’到‘Z’对应的位置为1
#include< iostream>
#include< string >
#include< vector >
#include< numeric >
using namespace std;
int main() {
string ss = "";
char hash[256] = {0};
for(int i=0; i < 26; i++)
{
ss += char(i+65);
hash[ ss[i] ] ++;
cout<< ss[i]<<" "<< hash[ ss[i] ] <<endl;
}
if(hash[65] == 1)
cout<<"************"<<endl;
system("pause");
return 0;
}
目前不知道输出是什么鬼