strcmp函数

#include<stdio.h>
#include<string.h>

int main()
{
char str1[]=”hello”;
char str2[]=”hellp”;
if(strcmp(str1,str2)>0)
printf(“da yu\n”);
else
printf(“xiao yu\n”);

}

猜你喜欢

转载自blog.csdn.net/qq_41661800/article/details/81664136