![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
a4zhangfei
这个作者很懒,什么都没留下…
展开
-
Ubuntu16.04安装ros kinect
1.换源 首先确保我们的Ubuntu系统的源是国内较快的,如果不是可以先换源,参考:https://mp.csdn.net/postedit/83866537 2.配置资源库 确保Ubuntu的资源库:“restricted”,"universe"和"multiverse"都是勾选的 3.设置Ubuntu的sources.list sudo sh -c 'echo "deb http://pack...转载 2018-11-13 15:34:16 · 2162 阅读 · 2 评论 -
C++位运算的应用
位运算是什么网上一大堆,直接就能搜索到,我知道的位运算的应用。 交换数字 int a = 1, b = 2; a = a^b; b = a^b; a = a^b; 利用异或(相同为0,不同为1) 得到最大最小值 如果想得到int的最大值 int minInt = 1<<(sizeof(int)*8-1); int maxInt = ~minInt; unsigned int maxU...原创 2020-01-22 21:34:42 · 231 阅读 · 1 评论