作者 郭聪
#include <stdio.h>
#include <stdlib.h>
int stringcmp(char *p,char *q)
{
while(*p==*q&&*p!='\0'&&*q!='\0')
{
p++;q++; }
return (*p-*q);
}
int main()
{
int stringcmp(char *,char *);
int m;
char str1[80],str2[80],*p1,*p2;
scanf("%s",str1);
scanf("%s",str2);
p1=&str1[0];
p2=&str2[0];
m=stringcmp(p1,p2);
printf("%d",m);
return 0;
}