有谁能帮我写一下main()函数
我想做字符串比较,main函数谁帮我写一下,非常感谢~!#include <stdio.h>
#define STRINGLEN 81
struct string
{
int len;
static char ch[STRINGLEN];
};
typedef struct string STRING;
//串比较
int StrCompare(s,t)
STRING *s,*t;
{
int i=0;
while((s->ch[i]=t->ch[i])&&(s->ch[i]!='\0')&&(t->ch[i]!='\0'))
i++;
return s->ch[i]-t->ch[i];
}
main()
{
}