
c/c++
salman_tan
这个作者很懒,什么都没留下…
展开
-
c语言函数参数++自增--自减情况分析(二)c++中的list之erase操作
c++中的list之erase操作正确的代码:void listRelease(aList_t *naList){ aList_t ::iterator iter; for (iter = naList->begin(); iter != naList->end(); ) { LOGD_INFO << "re...原创 2019-01-10 10:30:52 · 540 阅读 · 0 评论 -
c/c++中位与运算&代替取模运算%
c/c++中位与运算&代替取模运算%取模运算所需的时间大约是位与运算的十倍。当模的大小是2的N次方时,可用位与运算代替取模运算:unsigned int modNum = 1024; // 2的N次方unsigned int x = 4321;unsigned int a = x % modNum;unsigned int b = x & (modNum - 1);...原创 2019-02-12 17:31:31 · 1740 阅读 · 0 评论 -
The program 'roscore' is currently not installed. You can install it by typing: sudo apt install py
安装了ros但是运行roscore出现错误:The program 'roscore' is currently not installed. You can install it by typing: sudo apt install pyt解决方法:source /opt/ros/kinetic/setup.bash/opt/ros/kinetic/./setup.bashsudo...原创 2019-08-08 17:14:13 · 2872 阅读 · 2 评论