C++
WeChat_007
深度学习、人体行为识别
展开
-
c++多线程 Print
#include <iostream>// 必须的头文件#include <pthread.h>using namespace std;#define NUM_THREADS 5// 线程的运行函数void* say_hello(void* args){cout << "Hello Runoob!" << endl;...原创 2019-09-18 20:42:35 · 226 阅读 · 0 评论 -
c++多线程 传参
// 向线程传递参数(1)// 必要的头文件#include<iostream>// 多线成头文件#include<pthread.h>// c的stdlib头文件#include<cstdlib>// 最好不要用using namespace std;// 宏定义#define Numthread 5//定义一...原创 2019-09-18 20:43:10 · 350 阅读 · 0 评论 -
c++多线程 传结构体
// 向线程传递参数(2)#include<iostream>#include<cstdlib>#include<pthread.h>using namespace std;#define Numthread 5// struct thread datastruct thread_data{int num;char* s...原创 2019-09-18 20:43:59 · 1104 阅读 · 0 评论