摘要:
点击查看代码 void swap1(int *p1,int *p2) { int *temp; temp = p1; p1 = p2; p2 = p_temp; } int main() { int a = 10,b = 20; printf("交换之前:%d,%d\n",a,b); printf( 阅读全文
posted @ 2022-07-22 10:23
down^to^earth
阅读(34)
评论(0)
推荐(0)
#include <iostream> #include <thread> #include <unistd.h>//slleep头文件 using namespace std; void * mythread(void *) { cout<<"子线程运行成功"<<endl; return 0; / 阅读全文
#include <iostream> #include <pthread.h> #include <errno.h>//错误信息的头文件 #include <sys/types.h> #include <unistd.h> using namespace std; void * mypthread 阅读全文