作者:佚名 | 来源:网络 | 添加时间:2006-02-23 15:09:19 | 人气:976
/* 字典类型声明 */
typedef enum
{
ec,ce,cc,bi
}dictType;
/* 字典类型定义 */
dictType dictCaption;
/* 判断字典 */
static dictType JudgeDict(int argc, const char **argv )
{
if(argc == 2)
{
if (strcmp(argv[1], eng_chn) == 0)
return ec;
else if (strcmp(argv[1], chn_eng) == 0)
return ce;
else if (strcmp(argv[1], chn_chn) == 0)
return cc;
else if (strcmp(argv[1], bilingual) == 0)
return bi;
else
return ec;
}
else
{
return ec;
}
}