这个是进行字符串比较程序:int bijiao(hstring *s,hstring *t){ int i; for(i=0;ilength&&ilength;++i) if(s->ch[i]!=t->ch[i]) return(s->ch[i]-t->ch[i]); return s->length-t->length; }