题目:进制转换
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int a;
while(cin >> hex >> a) // C+= I/O流类库提供了一些操纵符,可以直接嵌入到输入输出语句中来实现I/O格式控制。
cout << a << endl;
/*string s;
while(cin >> s)
{
int len = s.size(), sum = 0;
for(int i=len-1; i>=2; --i)
sum += (s[i]>'9'? s[i]-'A'+10 : s[i]-'0') * pow(16, len-i-1);
cout << sum <<endl;
}*/
return 0;
}