2020年9月6日
摘要: // Given nums = [2, 7, 11, 15], target = 9, // Because nums[0] + nums[1] = 2 + 7 = 9, // return [0, 1]. #include <iostream> #include <vector> int GetI 阅读全文
posted @ 2020-09-06 22:10 _bob 阅读(213) 评论(0) 推荐(0) 编辑
  2018年1月19日
摘要: 1、在/etc/init.d中添加启停脚本ros_daemon.bash: 2、Ubuntu自启服务的设置: 1、删除自启动服务: sudo update-rc.d ros_daemon.bash remove 如果/etc/init.d/ros_daemon.bash仍然存在,那么需要添加-f选项 阅读全文
posted @ 2018-01-19 09:58 _bob 阅读(3973) 评论(0) 推荐(0) 编辑
  2017年6月11日
摘要: 1、首先安装jdk;(http://www.cnblogs.com/xiaochou/p/install_mint.html 评论区) 2、下载和安装smartGit: http://www.syntevo.com/smartgit/download?file=smartgit/smartgit-1 阅读全文
posted @ 2017-06-11 12:37 _bob 阅读(4636) 评论(0) 推荐(0) 编辑
  2017年5月16日
摘要: 如下代码:http://ideone.com/xcgHgw 本意是打印4个6; 但是打印结果是: 5 5 5 6; 原因是 9.0 * 0.6的返回值很有可能是5.3999...,+ 0.6后是5.9999...;强制转换为int型后是5; 解决方案是: 不要将double型的数据赋给整型,否则可能 阅读全文
posted @ 2017-05-16 19:21 _bob 阅读(2404) 评论(0) 推荐(0) 编辑
  2017年5月4日
摘要: 4、其它4.1 Github 可以提交和推送各种文件,可作免费网盘用Github 可以提交和推送二进制文件(exe,doc 等),所以 Github 也可以作为网盘用,但是内容是公开的(对免费用户)。但是对二进制文件的比较功能不好用。4.2 克隆 Github 的仓库到本地到任意文件夹下,点击克隆, 阅读全文
posted @ 2017-05-04 18:39 _bob 阅读(3284) 评论(0) 推荐(0) 编辑
摘要: 3、将本地文件纳入版本管理3.1 在 Github 新建代码仓库登入:https://github.com/new新建代码仓库: 进入该仓库,点击 SSH,复制后面的 SSH 地址(后面要用) 3.2 在计算机上创建代码仓库进入要纳入版本管理的文件夹,右键鼠标-Git 在这里创建版本库: 成功后,该 阅读全文
posted @ 2017-05-04 18:36 _bob 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: 1、软件的安装:1.1 安装 Git使用软件管理工具搜索 Git: 先安装 Git(也可以在 https://git-for-windows.github.io/ 找到最新版),全部选择默认即可;再安装小乌龟(也可以在 https://tortoisegit.org/download/ 下载最新版) 阅读全文
posted @ 2017-05-04 18:34 _bob 阅读(6981) 评论(0) 推荐(0) 编辑
  2017年4月24日
摘要: 变量定义时未初始化,导致生命周期结束后,重新定义变量时,仍然保存有之前的数据,或者数据为内存中的随机值。 如下代码: 以上代码的输出是: 编译器:http://ideone.com/gLxtqh 编译器gcc: 所以,一般情况下,定义变量时必须初始化,结构体需要: memset(&struct_na 阅读全文
posted @ 2017-04-24 09:41 _bob 阅读(2066) 评论(1) 推荐(0) 编辑
  2016年12月25日
摘要: 1、安装BlackBerry Desktop Software; 2、安装ROM,双击9900Asia_PBr7.1.0_rel2807_PL5.1.0.692_A7.1.0.1033_China_Mobile_Hong_Kong_Co._Ltd.exe; 3、删除vendor.xml; 4、连接B 阅读全文
posted @ 2016-12-25 21:34 _bob 阅读(1642) 评论(0) 推荐(0) 编辑
  2016年12月17日
摘要: 1、进入BIOS,关闭“Secure Boot”功能,启用传统的“Legacy Boot”。预装WIN8的系统想要更换WIN7系统首先需要修改BIOS设置。BIOS设置方法:F2进入BIOS,选择security-secure boot control 设置为disable,选择boot-将laun 阅读全文
posted @ 2016-12-17 00:40 _bob 阅读(1138) 评论(0) 推荐(0) 编辑