自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 c语言简单实现动态栈

c语言简单实现动态栈 # include <stdio.h> # include <malloc.h> # include <stdlib.h> //动态stack节点 typedef struct Node { int data; //数据域 struct Node * pNext; //指针域 }Node, *PNode; typedef struct { PNode pTop; //stack首部 PNode pBottom; //stack底

2020-05-12 18:00:42 167

原创 c语言简单实现非循环单链表

c语言简单实现非循环单链表 # include <stdio.h> # include <malloc.h> # include <stdlib.h> //定义链表的节点 typedef struct Node { int data; //数据域 struct Node *pNext; //指针域 }NODE, *PNODE; typedef int bool; #define true 1; #define false 0; PNODE create_lis

2020-05-09 21:04:47 248 1

原创 c语言简单实现ArrayList容器

c语言简单实现ArrayList容器 线性数据结构数组【连续储存】的操作 # include <stdio.h> # include <malloc.h> # include <stdlib.h> typedef struct Arr { int * pBase; //数组首地址 int len; //数组长度 int cnt; //数组有效元素个数 ...

2020-05-07 20:41:20 589

原创 c语言输出二进制

c语言十进制输出二进制方法: 除2取余再倒序,比较麻烦 用位运算符&直接得知某一位是0是1更直接高效 # include <stdio.h> void outBin(int a) { int len = sizeof(a)*8; //总位数 int i; //输出的位数 for (i=len-1; i>=0; i--) //去掉高位0 ...

2020-05-05 18:36:24 3741 1

空空如也

空空如也

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

TA关注的人

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