自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 3月5日

2021-03-06 19:54:57 47

原创 3月3日

无名管道代码#include<stdio.h>#include<unistd.h>#include<sys/types.h>#include<stdlib.h>#include<string.h>#include<sys/wait.h>int main(){ int fd[2]; int status; pid_t pid; if(pipe(fd) == -1) { per.

2021-03-04 19:37:52 56 1

原创 3月1日(补)

典型读写应用:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ FILE *fp; fp = fopen("./1.txt","w+"); if(fp == NULL) { perror("fopen:"); exit(1); } char *str = "hihi world\n"; int number = fwr.

2021-03-04 19:28:59 42 2

原创 二叉树,2月24日(补)

二叉树的代码实现,及二叉树相关函数的实现#include<stdio.h>#include<stdlib.h>#define N 50#define max 30struct TreeNode{ int value; struct TreeNode *left; struct TreeNode *right;};struct Node{ struct TreeNode *root ; struct Node *next.

2021-03-04 19:24:52 38 1

原创 队列,2月21日(补)

数组队列的实现#include<stdio.h>#define N 20struct queue{ int data[N]; int front; int rear; int size;};void push(struct queue *qp, int dat){ if(qp->size >= N) { printf("queue is full\n"); return; } qp->re.

2021-03-04 19:14:23 42 1

原创 栈,2月19日(补)

链式栈的实现#include<stdio.h>#include<stdlib.h>struct Node{ int value; struct Node *next;};struct stack{ int size; //栈的容量大小 struct Node *bottom; struct Node *top;};struct Node *createNode(int value){ struct N.

2021-03-04 19:09:06 43 1

原创 2月3日

2021-02-04 10:33:07 33

原创 2月1日

2021-02-02 19:04:11 25

原创 1月27日

2021-01-28 10:30:03 50

原创 1月25日

数组:一组数据类型相同的数据 int a【常量】 可以用#define1、数组中所有的数据都是相同的数据类型2、数组中所有元素的首地址都是连续的赋初值的方式:在定义时赋值用循环赋值数组与指针的联系:数组的名字可以作为指针使用a:数组首元素的地址 a = &a[0] a+1= &a[1]&a &a+1 将整个数组看作一个整体+1一对兔子,第一个月不生兔子,第二个月生一对兔子,此后

2021-01-26 20:33:59 81

原创 1月23日

2021-01-25 09:08:09 38

原创 1月21日

2021-01-22 15:43:06 34 1

原创 1月19日

2021-01-20 09:40:49 48

原创 1月17日

2021-01-19 10:21:33 57

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除