64,646
社区成员
发帖
与我相关
我的任务
分享
if("test"=="test")
{
cout<<"Yes"<<endl;
}
else
{
cout<<"NO"<<endl;
}
char *a = "test";
char *b = "test";
char a[] = "test";
char b[] = "test";
if(sz1=="test")
0041A3B3 lea eax,[sz1]
0041A3B6 cmp eax,offset string "test" (422AF4h)
0041A3BB jne main+0DAh (41A3EAh)
if(sz1==sz2)
0041A415 lea eax,[sz1]
0041A418 lea ecx,[sz2]
0041A41B cmp eax,ecx
0041A41D jne main+13Ch (41A44Ch)
if("test"=="test")
0041A477 mov eax,offset string "test" (422AF4h)
0041A47C cmp eax,offset string "test" (422AF4h)
0041A481 jne main+1A0h (41A4B0h)
char sz1[] = "test";
char sz2[] = "test";
if(sz1=="test")
{
cout<<"Yes"<<endl;
}
else
{
cout<<"NO"<<endl;
}
if(sz1==sz2)
{
cout<<"Yes"<<endl;
}
else
{
cout<<"NO"<<endl;
}