一到考试题目,百思不得其解
#include <stdio.h>int sstrcmp(char * s,char * t)
{
while (* s && * t && * s) == __________)
{ s++; t++; }
return(_____________);
}
函数的功能在于字符串比较,s指向大于t指向的字符串时返回1,等于时返回0,小于时返回-1.
想请问两个字符串怎么能够用逻辑来比较呢?好像牵扯不上啊,
2012-12-17 17:30

2012-12-17 19:07