- 博客(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
362
原创 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
592
原创 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 info yum install libaio # install library #debain系列 apt-cache search libaio # search for info apt-get install
2020-07-10 19:51:59
264
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅