读书人

实在不明白这是咋回事

发布时间: 2012-11-10 10:48:51 作者: rapoo

实在不明白这是怎么回事
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



C/C++ code
#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));} 

读书人网 >C++

热点推荐