函数mycmp(char *s char *t)的功能是比较字符串s和t的大小 当s等于t时返回0 当sgt;t时返回正值

计算机 字符串,函数,大小 已帮助 人

函数mycmp(char *s,char *t)的功能是比较字符串s和t的大小,当s等于t时返回0,当s>t时返回正值,当s<t时返回负值,请填空。mycmp(char *s,char *t){ while (*s==*t) { if (*s==’’)return 0; ++s;++t; } return();}

热搜:下面程序的功能是输出数组s中最大元素