#include<iostream>
#include<string>
using namespace std;
int main(){
string word;
const string hexDigit="0123456789ABCDEF";
string zong;
int n;
cout << "将字符串里的东西都换成x"<<endl;
while (cin >> word){
for (auto &c : word)
{
c = 'x';
}
cout << word << endl;
}
cin.clear();
system("PAUSE");
cout << "去掉标点符号" << endl;
while (cin >> word){
for (auto&c : word)
{
if (ispunct(c))
{
c = ' ';
}
}
}
cout << word << endl;
cin.clear();
system("PAUSE");
cout << "十进制转16进制" << endl;
while (cin >> n){
if (n <= hexDigit.size()){
zong = zong + hexDigit[n]+" ";
}
}
cout << zong << endl;
system("PAUSE");
return 0;
}