C语言的strcmp是什么意思?/* 指定业务 */if( (g_token.rule_type_code,"-1") = 0){if(is_logic_compact("CHAR","in",g_token.rule_type_code,p_rutable->sTypeCode,0) == 0){continue;}}/* 指定环节 */if(strcmp(sRuleGroup,"-1") = 0 ){if(strcmp(sRul
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 17:43:34
C语言的strcmp是什么意思?/* 指定业务 */if( (g_token.rule_type_code,"-1") = 0){if(is_logic_compact("CHAR","in",g_token.rule_type_code,p_rutable->sTypeCode,0) == 0){continue;}}/* 指定环节 */if(strcmp(sRuleGroup,"-1") = 0 ){if(strcmp(sRul
C语言的strcmp是什么意思?
/* 指定业务 */
if( (g_token.rule_type_code,"-1") = 0)
{
if(is_logic_compact("CHAR","in",g_token.rule_type_code,p_rutable->sTypeCode,0) == 0)
{
continue;
}
}
/* 指定环节 */
if(strcmp(sRuleGroup,"-1") = 0 )
{
if(strcmp(sRuleGroup,"PST")==0 || strcmp(sRuleGroup,"PPP") == 0)
{
if(strcmp(p_rutable->sRuleGroup,"PST") = 0 && strcmp(p_rutable->sRuleGroup,"PST") = 0)
{
continue;
}
}
else if(strcmp(sRuleGroup,p_rutable->sRuleGroup) = 0)
{
continue;
}
}
以上代码
C语言的strcmp是什么意思?/* 指定业务 */if( (g_token.rule_type_code,"-1") = 0){if(is_logic_compact("CHAR","in",g_token.rule_type_code,p_rutable->sTypeCode,0) == 0){continue;}}/* 指定环节 */if(strcmp(sRuleGroup,"-1") = 0 ){if(strcmp(sRul
strcmp(str1,str2)函数就是比较参数中两个字符串str1 和 str2的大小(大小写敏感,即"A" != "a"),如果完全相等,返回0,如果str1 < str2(按照字母顺序比较),返回-1,如果str1 > str2,则返回1.
上面的代码都是在比较字符串sRuleGroup是否等于"PST","PPP"等,然后根据不同的比较结果作不同是事情.