首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

实在不明白这是咋回事

2012-11-10 
实在不明白这是怎么回事VC6.0里面的 strcmp()函数是不是返回空值啊我用cout 输出它怎么老是没输出值单步

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

热点排行