- 博客(11)
- 收藏
- 关注
原创 Posix共享内存
#include <stdio.h>#include <stdlib.h>#include <unistd.h> #include <fcntl.h> #include <semaphore.h> #include <sys/mman.h> #include <string.h> #define SHM_NAME "/memmap" #define SHM_NAME_SEM "/memmap_..
2020-05-26 17:50:40
195
原创 有名信号量
#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <semaphore.h>#include <sys/stat.h>void Testfun(sem_t* sem1){ static int num = 0; for(;;) { sem_wait(sem1); printf("this is sem1 fun num =%.
2020-05-25 12:19:37
316
翻译 经典排序--插入排序
#include <stdio.h>#include <string.h>#include <stdlib.h>#define MAX_SIZE 9#define FALSE 0#define TURE 1typedef char ElementType;typedef char Status;typedef struct { ElementType array[MAX_SIZE + 1 ]; //array[.
2020-05-24 17:14:07
165
翻译 经典排序之- 选择排序
#include <stdio.h>#include <string.h>#include <stdlib.h>#define MAX_SIZE 9#define FALSE 0#define TURE 1typedef char ElementType;typedef char Status;typedef struct { ElementType array[MAX_SIZE + 1 ]; //array[.
2020-05-24 16:15:48
233
1
翻译 经典排序之--冒泡排序
#include <stdio.h>#include <string.h>#include <stdlib.h>#define MAX_SIZE 9#define FALSE 0#define TURE 1typedef char ElementType;typedef char Status;typedef struct { ElementType array[MAX_SIZE + 1 ]; int .
2020-05-24 15:40:01
145
原创 数据结构和算法学习路径
1: 对数据结构基本概念的整体把握: https://www.jianshu.com/p/e98057572ce92:数据结构的基本实现(C语言)--链表,树,图3:经典算法,经典问题的实现--代码4:剑指offer刷题
2020-05-24 11:15:21
353
翻译 TO BE ASSERTIVE
so what does it mean to be assertive ?Being the assertive is the capbility to comminuicate in a confident and calm way,even intense or difficult situations,when someone else might be pushy or rude or aggressive at work,it means you're able to respond in.
2020-05-22 09:59:38
429
翻译 Dream it possible --Delacey
i will run, i will climb ,i will soari'm undefeated Jumping out of the my skin pull the chordYear, i believe itThe past is everything we were don't make us who we areso i'll dream until i make it real and all i see is starsit's not until you f.
2020-05-21 09:14:40
323
翻译 Capture your soul -- 5 minutues to spare
No matter how busy you are , you could spend 5 minutesto answer the phoneto read the morning paperto talk the neighbordo dispute with the laundryman about a mistaketo watch new furniture being unloanded next doorto chat with the salesmanto r.
2020-05-20 09:10:08
225
原创 Linux进程通信无名管道PIPE,有名管道FIFO
PIPE相关代码Talk is cheap ,show me the code!#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <string.h>//authour:liyya/*管道的读写行为 使用管道需要注意以下4种特殊情况(假设都是阻塞I/O操作,没有设置O_NONBLOCK标志):1. 如果所有指向管道写端的文件描述符都关闭了(管道写
2020-05-19 09:58:38
190
原创 Python学习第一天--工欲善其事必先利其器
开博语:只所不如人也,唯惰字而已!今反省自身,自当勤勉!1:安装开发环境 (VS,python3.8, 以及vs的python extension)vs从官网下载--说明vs的风格以及强大的功能是我的最爱,建议使用这个工具进行python的学习以及开发。python3.8 从官网下载(注意安装路径,vs要求解释器存放路径)VS 开源工具中关于如何进行python开发的说明文档,https://code.visualstudio.com/docs/python/python-t..
2020-05-15 18:12:54
206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人