- 博客(4)
- 收藏
- 关注
原创 Cpp指针和引用的区别
指针#include <iostream>using namespace std;int * mac(){ int *i=new int(10); return i;}int macp(int *n){ cout<<*n<<endl;}int main(){ int i=10; int *p=&i; int *pp=mac(); printf("%d\n",*p); printf("%d\n",*pp); return
2020-07-10 19:56:53 233
原创 Cpp标准库多线程编程
更多使用参考:https://en.cppreference.com/w/thread类//一个常用的构造函数形式template< class Function, class... Args >explicit thread( Function&& f, Args&&... args );//参数均为右值引用,其为临时对象不会影响原来的对象//线程的函数参数必须是一个没有返回值的函数简单使用#include <thread>//包含
2020-07-10 19:55:06 459
原创 MySQL 通用二进制包安装
下载wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz安装依赖包#redhat系列yum search libaio # search for infoyum install libaio # install library#debain系列apt-cache search libaio # search for infoapt-get install
2020-07-10 19:51:59 171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人