帮忙找错并改正#include #include int compare(char s1[],char s2[]){ int i;for (i=0; s1[i] && s2[i];i++)if (s1[i]>s2[i])return 1;else if (s1[i]

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/05 22:31:35

帮忙找错并改正#include #include int compare(char s1[],char s2[]){ int i;for (i=0; s1[i] && s2[i];i++)if (s1[i]>s2[i])return 1;else if (s1[i]
帮忙找错并改正
#include
#include
int compare(char s1[],char s2[])
{ int i;
for (i=0; s1[i] && s2[i];i++)
if (s1[i]>s2[i])
return 1;
else if (s1[i]

帮忙找错并改正#include #include int compare(char s1[],char s2[]){ int i;for (i=0; s1[i] && s2[i];i++)if (s1[i]>s2[i])return 1;else if (s1[i]
#include
#include
int main()
{
int compare(char s1[],char s2[])
{int i;
for (i=0;s1[i]&&s2[i];i++)
{if (s1[i]>s2[i])
return 1;
else if (s1[i]