#include<iostream>
using?namespace?std;
int?main()
{
char?ch[5][20]={"hello","nice","fighting","goal","fun"};
char?chi[5][20]={"你好","漂亮","加油","目标","有趣"};
char?str[20];
cout<<"请输入一个英文单词:";
cin>>str;
for(int?i=0;i<5;i++)
{
if(strcmp(ch[i],?str)?==?0)
cout<<"中文翻译:"<<chi[i]<<endl;
}
return?0;
}