自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 demo开发问题07之将byte[]转为String

一、需求从http连接中读取byte流,并将其转化为String。二、实现过程1.思路这里有三种方法来承接这些bytes:String、StringBuilder、StringBuffer。String: immutable,在内存中已经创建便无法修改。StringBuilder:mutable(可以修改),线程不安全,操作速度快。StringBuffer:mutabl...

2019-01-08 15:29:22 310

原创 demo开发之问题04编译ubuntu环境下编译opencv

一、安装过程中出现的问题1.  looking for ccache --not foundsudo apt-get install ccache2.  Performance test HAVE)C_WSUGGEST_OVERRIDE - FailedWhat parameter did you pass to cmake to allow for "Non-free algor...

2019-01-07 17:21:11 6318 1

原创 demo开发之问题3在ubuntu下安装C++开发环境

转载于https://itsfoss.com/c-plus-plus-ubuntu/  向大佬致敬一、C++开发环境的安装。1. 安装build-essential packagesudo apt-get install build-essentialyou must install build-essential package. It consists of various s...

2019-01-05 12:58:00 153

原创 demo搭建---环境配置02

2.网络配置1) 配置静态ip实现ping一下待使用的ip,然后使用如下命令进行修改:auto enp0s3iface enp0s3 inet staticaddress 192.168.1.125netmask 255.255.255.0gateway 192.168.1.1最后使用如下命令sudo /etc/init.d/networking restart2)...

2019-01-02 17:13:45 760

原创 demo开发之问题02 float保存2位有效数字

一、需求: 参数data保留两位有效数字生成result(data和result均为float类型)二、问题:开发时遇到的问题:1. 如下边三张图所示,输入参数不同,floatForm的结果不同,甚至可能抛出异常。2. 在测试程序中的main函数可以正常调用floatForm(此时的data = 123.46),但是在demo系统里floatFormat函数无法正常执行,即图1中p3部...

2019-01-02 16:48:54 899

原创 demo开发之问题01mysql中的load_file函数返回null

问题1:无法使用load_file("filepath")向db写入文件。解法:1) API中的定义Reads the file and returns the file contents as a string. To use this function, the file must be located on the server host,  (1)you must specif...

2019-01-02 10:20:12 1436 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除