自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (1)
  • 收藏
  • 关注

原创 链表逆序[c]

void reverse(struct list *ls)//链表逆置{ if (ls->next == NULL) return;//只有一个首节点,不需要逆置 if (ls->next->next == NULL) return;//也不需要逆置 struct list *last = ls->next;//逆置后ls->next就

2015-07-27 11:23:30 327

原创 链表的增删

#include #include struct list{ int data;//数据域 struct list *next;//指针域};struct list *create_list()//建立一个节点{ return calloc(sizeof(struct list), 1);}struct list *insert_list(struct

2015-07-24 09:48:39 518

原创 二分法查找

int bin(int *array, int low, int high, int key)//二分法查找{ while(low <= high) { int mid = (low + high) / 2; if (key == array[mid])//中间切一刀,正好和要查找的数相等 return mid;

2015-07-23 16:03:57 364

原创 选择排序

#include int count = 0;void swap(int *a, int *b){ int tmp = *a; *a = *b; *b = tmp; count++;}void bubble(int *array, int n){ int i; int j; for(i = 0; i< n; i++)

2015-07-23 15:27:36 316

原创 结构体二进制读写和排序

#include #include struct student{ char name[10]; int age;};int main05(void){ struct student st[5] = { 0 }; int i; for(i = 0; i < 5; i++) { printf("please name:"

2015-07-23 14:37:04 670

原创 fflush,remove,rename

5.13    fflush函数fflush函数可以将缓冲区中任何未写入的数据写入文件中。成功返回0,失败返回EOF。int fflush(FILE * _File);5.14    remove函数remove函数删除指定文件int  remove(const char *_Filename);参数Filename为指定的要删除的文件名,如果是windows下文件名与

2015-07-23 14:22:45 724

原创 fseek,ftell

5.11fseek函数int fseek(FILE * _File, long _Offset, int _Origin);函数设置文件指针stream的位置。如果执行成功,stream将指向以fromwhere为基准,偏移offset(指针偏移量)个字节的位置,函数返回0。如果执行失败则不改变stream指向的位置,函数返回一个非0值。实验得出,超出文件末尾位置,还是返回0。往回偏移

2015-07-23 12:19:20 507

原创 索引排序

#include #include #include #include int main(void){ srand((unsigned int)time(NULL)); int i; FILE *p = fopen("D:\\temp\\a.txt", "w"); for(i = 0; i < 100000; i++) { fpr

2015-07-23 11:31:01 484

天将军录音笔使用说明[Q50]

天将军录音笔 Q50 pdf使用说明文档

2015-07-27

空空如也

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

TA关注的人

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