64,651
社区成员
发帖
与我相关
我的任务
分享
cout < <&str5 < <endl;
cout < <&str6 < <endl;
cout < <&str7 < <endl;
cout < <&str8 < <endl;
改成
printf("%x\n",str5);
printf("%x\n",str6);
printf("%x\n",str7);
printf("%x\n",str8);
试试吧,就可以看到了
char str1[] ="ab";
char str2[] ="ab";
cout < <(str1==str2) < <endl;
const char* str5 = "ab";
const char* str6 = "ab";
cout < <(str5==str6) < <endl;