会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
down^to^earth
博客园
首页
新随笔
联系
订阅
管理
2022年7月22日
指针作为形参问题
摘要: 点击查看代码 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)
2022年3月15日
线程(三) 互斥锁使用
摘要: #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)
2022年1月14日
关于mathtype在origin中插入公式 绘图一事
摘要: 近日在处理数据涉及到各个绘图软件时,包括matlab绘图,visio绘图,以及origin绘图,不同的软件需要兼容达到较好的效果,同时容易出现问题,如matlab、origin出图坐标轴图例名称等的一些字体格式,尤其是在用mathtype中插入公式的格式问题,origin可以直接插入但无法旋转,而m
阅读全文
posted @ 2022-01-14 10:13 down^to^earth
阅读(1730)
评论(0)
推荐(0)