摘要: 2018/09/29 正数变成对应的负数 2の補数(Two's complement) Math.abs() 絶対値 如何用一个函数就能实现将正数变成对应的负数,将负数变成对应的正数: int turn(int a) { a = ~a + 1; return a; } int main() { pr 阅读全文
posted @ 2018-09-29 09:57 charles999 阅读(191) 评论(0) 推荐(0) 编辑