开发者

if statement containing a semi-colon [closed]

开发者 https://www.devze.com 2023-04-07 11:59 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

I've see开发者_C百科n this if statement recently:

if(hWnd > 0)
{
 ....
}

Can someone explain this syntax for me?

I've never seen a semi-colon in an if statement before.


It's HTML encoded and that code won't compile correctly until it is decoded. It should be this:

if(hWnd > 0)
{
    ....
}

The > is the HTML (or XML) entity for >. You might also find that the code contains other entities such as & instead of &.


It looks like an HTML-Encoded version of an if statement.

The > would be converted to a greater-than symbol: >

0

精彩评论

暂无评论...
验证码 换一张
取 消