摘要: 点击查看代码 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 阅读(32) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <pthread.h> int sharedi = 0; void increse_num(void); pthread_mutex_t mutex;//互斥锁定义 int main(){ int ret 阅读全文
posted @ 2022-03-15 20:12 down^to^earth 阅读(87) 评论(0) 推荐(0)
摘要: 线程(二) #include <iostream> #include <thread> #include <unistd.h>//slleep头文件 using namespace std; void * mythread(void *) { cout<<"子线程运行成功"<<endl; return 0; / 阅读全文
posted @ 2022-03-15 19:54 down^to^earth 阅读(20) 评论(0) 推荐(0)
摘要: 线程(一) #include <iostream> #include <pthread.h> #include <errno.h>//错误信息的头文件 #include <sys/types.h> #include <unistd.h> using namespace std; void * mypthread 阅读全文
posted @ 2022-03-15 19:46 down^to^earth 阅读(26) 评论(0) 推荐(0)
摘要: 近日在处理数据涉及到各个绘图软件时,包括matlab绘图,visio绘图,以及origin绘图,不同的软件需要兼容达到较好的效果,同时容易出现问题,如matlab、origin出图坐标轴图例名称等的一些字体格式,尤其是在用mathtype中插入公式的格式问题,origin可以直接插入但无法旋转,而m 阅读全文
posted @ 2022-01-14 10:13 down^to^earth 阅读(1730) 评论(0) 推荐(0)