- 博客(15)
- 资源 (2)
- 收藏
- 关注
原创 解决windows安装dlib出现的问题
https://blog.youkuaiyun.com/scottzeg/article/details/96362109
2019-11-15 17:01:45
723
原创 安装opencv+boost库
Step #1: Install OpenCV dependencies on Ubuntu 16.04$ sudo apt-get upgrade$ sudo apt-get install build-essential cmake pkg-config$ sudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev lib...
2019-07-28 21:04:01
528
原创 自动驾驶小车控制
ssh ubuntu@192.168.*.*** cd racecar-wsrosrun beginner_tutorials talkerroslaunch racebot test_vesc.launchcd racebot/console./build-console.shsudo ./consolecat /proc/bus/input/devices //用于查...
2019-07-28 21:03:32
367
原创 阿里巴巴2020届暑期实习C++开发编程题2
区间合并#include <iostream>#include <map>#include <cmath>#include <cstring>#include <algorithm>#include <vector>using namespace std;struct Interval{ int sta...
2019-04-13 14:51:43
409
原创 thrift实现图片传输(c++)并使用libjpeg-turbo库将jpeg转为bmp
thrift编写服务器/客户端实现图片传输(c++)这里需要注意在编译时会报错,需要在Makefile中将-lthrift移到最后。server: server.cpp g++ -DHAVE_NETINET_IN_H -o server -I${THRIFT_DIR} -I${BOOST_DIR} -I../gen-cpp -L${LIB_DIR} server.cpp ${...
2019-02-13 10:30:44
868
原创 Ubuntu16.04安装编译thrift 并运行c++ Demo
Ubuntu编译thrift这里要注意boost的安装路径/bootstrap.sh --prefix="boost安装路径"sudo ./b2 --prefix="boost安装路径"thrift框架使用c++的一个Demo这里需要注意直接编译Server端代码,会显示TSimpleServer等未定义,这是缺少函数定义。需要在thrift安装路径/lib/cpp/src/thri...
2019-02-11 16:35:52
700
原创 Ubuntu系统下为usb开启权限
Ubuntu系统下为usb开启权限查询usb所挂载的位置打开权限查询usb所挂载的位置使用命令lsusb由上图可知,Memorex所挂载的位置为Bus003 Device014打开权限sudo chmod 777 /dev/bus/usb/003/014以上。...
2019-01-30 14:20:07
2783
转载 虚拟机如何和主机建立共享文件夹
详情请见:https://jingyan.baidu.com/article/656db918cca831e381249cce.html
2019-01-16 15:36:12
338
原创 【数据结构】---Manacher算法
#include <iostream>#include <cstring>#include <cmath>#define MAXSIZE 110000using namespace std;int pArr[MAXSIZE * 2 + 5];char str[MAXSIZE + 5];char charArr[MAXSIZE * 2 + 5];v...
2018-02-12 20:42:54
263
原创 【数据结构】---kmp算法
#include <iostream>#include <cstring>using namespace std;int getIndexOf(string str1, string str2){ int len1 = str1.length(); int len2 = str2.length(); int i1 = 0; int i2 = 0; int *...
2018-02-09 21:53:28
265
原创 牛客网初级班(2)
堆排序void swap(int arr[],int i,int j){ int tmp=arr[i]; arr[i]=arr[j]; arr[j]=tmp;}void heapInsert(int arr[],int index){ while(arr[index]>arr[(index-1)/2]){ swap(arr,in...
2017-12-03 21:00:22
340
原创 【数据结构】---排序1
冒泡排序void BubbleSort(int arr[],int n){ if(n==1||n==0) return; for(int e=n-1;e>0;e--){ for(int i=0;i<e;i++){ if(arr[i]>arr[i+1]) swap(arr,i,i+1);...
2017-11-14 17:11:22
241
原创 大整数类BigInteger
#include<iostream>#include<cstring>#include<vector>#include<algorithm>#include<stdio.h>using namespace std;struct BigInteger{ static const int BASE = 100000000; static const int WIDTH = 8;
2017-05-27 08:46:32
232
转载 计算1-n中1的个数
1~ N中“1”的个数跟最高位有关,那我们换个角度思考,给定一个N,我们分析1~N中的数在每一位上出现1的次数的和,看看每一位上“1”出现的个数的和由什么决定。 **1位数的情况:** 在解法二中已经分析过,大于等于1的时候,有1个,小于1就没有。 **2位数的情况:** N=13,个位数出现的1的次数为2,分别为1和11,十位数出现1的次数为4,分别为10,11,12,13,所以f
2017-03-12 21:31:07
631
转载 字符串子串的完全替换
循环替换string& replace_all(string& str,const string& old_value,const string& new_value){ while(true){ string::size_type pos(0); if((pos=str.find(old_value))!=string::npos)
2017-03-08 16:42:02
368
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人