自定义博客皮肤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)
  • 收藏
  • 关注

原创 epoll的基本使用

epoll:为处理大量文件描述符,而改进的poll;特点:每个文件描述符及事件是在结构体中,而且是存放在链表中,需要是添加,不需要时释放,不会占用多的空间;三个系统调用函数:头文件:#include <sys/epoll.h>int epoll_create(int size);功能:创建epoll参数:int size:目前已经失效返回值:...

2019-09-25 15:39:43 536

原创 小白学习之路:快速排序

原理: #include <stdio.h> 2 void display(int p[]); 3 int sort(int p[],int low,int high); 4 void swap(int p[],int l,int h); 5 int main() 6 { 7 int s[10] = {2,1,5,4,3,6,9,...

2019-06-25 20:25:48 87

原创 小白学习之路:插入排序

1 #include <stdio.h> 2 #define LEN 5 3 /*得到将要排序的数字*/ 4 void get_number(int *buf) 5 { 6 int i; 7 for(i=0; i<LEN; i++) { 8 scanf("%d",&buf[i]);...

2019-06-25 20:00:04 90

原创 小白学习之路:选择排序

12 #include <stdio.h>13 #define LEN 51415 void get_number(int *buf)16 {17 int i;18 for(i=0; i<LEN; i++) {19 scanf("%d",&buf[i]);20 ...

2019-06-25 19:56:03 74

空空如也

空空如也

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

TA关注的人

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