#include
#include
using namespace std;
int main(void)
{
char a1[100],a2[100];
int a;
printf("Please two string:\n");
scanf("%s%s",&a1,&a2);
a=strcmp(a1,a2);
if(a<0) a=-1;
else if(a=0) a=0;
else a=1;
printf("return: %d\n",a);
return 0;
}
int mystrcmp(char s1[],char s2[])
{
int i;
for(i=0;s1[i]!='\0'&&s2[i]!='\0';i++)
{
if(s1[i]>s2[i])
return 1;
else if(s1[i]
if(s1[i]=='\0'&&s2[i]=='\0')
return 0;
else if(s1[i]=='\0')
return -1;
else
return 1;
}