容错率//满足输入子串在母串中出现且不低于母串字符数的一半
#include #include #include int cmpcns(const char *p,const char *b)// 判断输入中文是否正确 (母串子串) { int k; if(strlen(b)<(strlen(p)/2)) return 0;//输入字符不低于母串个数一半 for(k=0;(k