问题详情
写一个函数 int strcmp(const str *str1,const str *str2)
要求:如果str1=str2 return 0;如果str1>str2 返回一个正数;如果 str1<str2 返回一个负数。
不能调用其他函数。。。。。
请帮忙给出正确答案和分析,谢谢!