帮忙找错并改正#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/28 01:27:13
帮忙找错并改正#include#includeintcompare(chars1[],chars2[]){inti;for(i=0;s1[i]&&s2[i];i++)if(s1[i]>s2[i])re

帮忙找错并改正#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]