汉译英的程序,求大神指点!!
/* Note:Your choice is C IDE */#include "stdio.h"
#include<string.h>
void main()
{ char YW[5][25]={"France","China","U.S.A","Japan","India"};
char ZW[5][50]={"法国","中国","美国","日本","印度"};
char sr[50];
int i;
printf("请输入国家名称:");
scanf("%h",&sr[50]);
for(i=0;i<5;i++)
{ if(strcmp(sr[50],ZW[i])==0)
{ printf("%s",YW[i]);
break;
}
}
}