十进制转十六进制,输出十六进制中字母的个数 int main() { int res=0; char arr[] = "0123456789ABCDEF"; int num; cin>>num; vector<char>ans; while (num) { ans.push_back(arr[num % 16]); num = num / 16; } for(auto t:ans) { if(t&...