摘要: 在Data Lab中有一个logicalShift函数给定一个值x和需要移动的位数n,要求只是用运算符:~ & ^ | + ,实现逻辑右移运算。思考了很久,然后我写出了如下的代码: / logicalShift shift x to the right by n, using a logical s 阅读全文
posted @ 2018-02-13 19:36 dreamnwx1 阅读(966) 评论(0) 推荐(0) 编辑