C语言的strcmp是什么意思?
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/09/20 12:10:49
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;
}
}
以上代码
/* 指定业务 */
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;
}
}
以上代码
strcmp(str1,str2)函数就是比较参数中两个字符串str1 和 str2的大小(大小写敏感,即"A" != "a"),如果完全相等,返回0,如果str1 < str2(按照字母顺序比较),返回-1,如果str1 > str2,则返回1.
上面的代码都是在比较字符串sRuleGroup是否等于"PST","PPP"等,然后根据不同的比较结果作不同是事情.
上面的代码都是在比较字符串sRuleGroup是否等于"PST","PPP"等,然后根据不同的比较结果作不同是事情.
C语言的strcmp是什么意思?
C语言中,if(strcmp(stu[i].code,s1)==0)是什么意思?
C语言.谁知道if(strcmp(a,b)>0)
strcmp函数的用法
if(strcmp(men,"A")!=0&&strcmp(men,"B")!=0&&strcmp(men,"C")!=
谁知道STRCMP()的意思?
while(gets(str1),strcmp(str1,"#"))中的逗号什么意思,这句话的条件又是什么意思?
C语言,这种结构的定义是什么意思?
51单片机的C语言P27是什么意思
c语言中逗号指的是什么意思?
C语言变量的可见性是什么意思
C语言中的数的范围是什么意思