自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(15)
  • 收藏
  • 关注

转载 树莓派 3b 串口启用

网上搜到的方法都没用,不知道是不是系统版本的原因。以下方法是试出来的。。。uname -aLinux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux关于串口设置,关闭串口登录,打开串口sudo raspi-config/boot/config.t...

2018-11-27 23:27:00 151

转载 Linux 下 boost 库的安装,配置个人环境变量

部分引自:https://blog.csdn.net/this_capslock/article/details/471703131. 下载boost安装包并解压缩到http://www.boost.org/下载boost的安装包,以boost_1_58_0.tar.gz为例 下载完成后进行解压缩:tar zxvf boost_1_58_0.tar.gz2.设置编译器和所选库先...

2018-11-06 14:19:00 1081

转载 字符串比较

对于字符数组或者指针与字符串的比较,两种方式方法一:strncmp 比较前n位 1 FILE *pInfo; 2 char ConsoleType[20]; 3 if((pInfo=popen("","r"))!=NULL) //引号内可以是grep等返回字符串的命令 4 { 5 memset(ConsoleType,'\0',siz...

2018-10-19 11:08:00 101

转载 复杂度分析

转载于:https://www.cnblogs.com/zyw567/p/9765910.html

2018-10-10 15:57:00 93

转载 read from /dev/urandom 返回值异常

1 #include<stdio.h> 2 #include<iostream> 3 #include <fcntl.h> 4 #include <sys/mman.h> 5 using namespace std; 6 int main(int argc,char* argv[]) 7 { 8 s...

2018-09-21 11:17:00 978

转载 进程控制

1 #include <unistd.h>2 pid_t getpid(void); //return value: 调用进程的进程ID3 pid_t getppid(void); //return value: 调用进程的父进程ID1 //返回值:子进程中返回0,父进程中返回子进程ID,出错返回-12 pid_t fork(void...

2018-09-17 17:03:00 82

转载 多线程

#include<thread>'static mutex mu;    //互斥锁class SaleTick{public:  void Main(int first)  {    cout << "In SaleTick" << endl;    //互斥锁,尽量晚的加锁,尽量早的解锁  }};Sale...

2018-02-23 12:59:00 68

转载 使用LTP套件对Linux系统进行压力测试

使用LTP套件对Linux系统进行压力测试https://www.ubuntukylin.com/ukylin/forum.php?mod=viewthread&tid=6764https://github.com/linux-test-project/ltp/releaseshttp://blog.csdn.net/kernel_learner/article/de...

2018-02-08 23:42:00 234

转载 算法入门及其C++实现

https://github.com/yuwei67/Play-with-Algorithms(nlogn)为最优排序算法选择排序整个数组中,先选出最小元素的位置,将该位置与当前的第一位交换;然后选出剩下数组中,最小元素的位置,将此元素与第二位元素交换;以此类推srand和rand函数使用...

2018-01-26 07:12:00 87

转载 第三章

Z3S5程序查错const float pi = 3.14f;float f;float f1(float r){  f = r*r*pi;  return f;}int main(){  float f1(float=5);  float& b = f1();  std::cout << b <&...

2017-12-26 10:27:00 77

转载 通过xshell远程连接ubuntu

http://blog.csdn.net/lianghe_work/article/details/47340141需要先安装 sudo apt-get install openssh-server设置网络地址为静态不要修改resolve.conf,会被自动复写/etc/init.d/networking restart 重启网卡转载于:https:/...

2017-11-14 03:22:00 84

转载 samba

Ubuntu下配置samba实现文件夹共享一. samba的安装:?12sudo apt-get insall sambasudo apt-get install smbfs二. 创建共享目录:?12mkdir /home/phinecos/sh...

2017-11-12 23:03:00 75

转载 socket编程

摘选自:http://blog.csdn.net/hguisu/article/details/7445768/1.1int socket(int protofamily, int type, int protocol);//返回sockfdprotofamily:即协议域,又称为协议族(family)。常用的协议族有,AF_INET(IPV4)、AF_INET6(IPV6)、A...

2017-10-09 23:33:00 62

转载 第二章

Z2S2用#define实现宏并求最大值和最小值1 #define MAX( x, y ) ( ((x) > (y)) ? (x) : (y) )2 #define MIN( x, y ) ( ((x) < (y)) ? (x) : (y) )在宏中需要把参数小心地用括号括起来。因为宏只是简单的文本替换,如果不注意,很容易引起歧义。Z2S6用宏定...

2017-10-03 17:04:00 86

转载 第一章

Z1S6当表达式中存在有符号类型和无符号类型时,所有的操作数都自动转换成无符号类型。char getChar(int x, int y){  char c;  unsigned int a = x;  (a + y > 10)? (c = 1): (c = 2);  return c;}//-7首先被转换成一个很大的数,然后与7相加后正好溢出,其...

2017-10-01 19:47:00 81

空空如也

空空如也

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

TA关注的人

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