实在不明白这是怎么回事
VC6.0里面的 strcmp()函数是不是返回空值啊 我用cout<< 输出它 怎么老是没输出值 单步的时候总显示void
[解决办法]
Value Relationship of string1 to string2
< 0 string1 less than string2
0 string1 identical to string2
> 0 string1 greater than string2
#include <stdio.h>#include <string.h>char string1[] = "The quick brown dog jumps over the lazy fox";char string2[] = "The QUICK brown dog jumps over the lazy fox";int main(void){ printf("%d\n",strcmp(string1,string2));}