Created
August 1, 2017 01:34
-
-
Save vigack/0f7cb9f5c30dcf75abb2b5ca9d341187 to your computer and use it in GitHub Desktop.
判断两个int类型数符号是否相反
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int x, y; | |
bool f = ((x^y)<0); // true表示两数符号相反 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment