- 博客(4)
- 收藏
- 关注
原创 进程间通信(1)-有名管道
1)进程间通信的方式: 管道(有名) 2)有名管道的通信原理:通过在内存上开辟一块全新的空间,两个相互独立的进程通过文件描述符操纵这块独立的空间 3)使用对象:相互独立的 进程 4)创建函数:mkfifo命令 mkfifo(), 5)使用的函数 : 1.打开管道文件 int open(char *filename ,int oflag)//返回文件标识符fi
2017-09-30 17:49:55 298
原创 Linux-my_bash(cd)
#include <stdio.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <assert.h>#include <sys/types.h>#include <sys/utsname.h>#include <pwd.h>#define LEN 10char* Cmd[LEN] = {0};//
2017-09-28 16:55:17 652
原创 linux -my ls
这里写代码片#include #include #include #include #include #include #include #include void main(){ char path[128] = {0}; getcwd(path,127);//获取当前路径 if(strlen(path) == 0)//路径位空时返回
2017-09-24 18:20:57 689
原创 队列实现二叉树的遍历
#include<stdio.h>#include<assert.h>#define QUEUESIZE 8#define INC 2 //扩容增量为2typedef int QueueElemtypedef struct Queue{ QueueElem *data; int front; int tail; int maxsize;//最大的
2017-09-24 09:02:35 426
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人