风萧28

2019年6月16日

python排序

摘要: import random def bubble_sort(li): for i in range(len(li)-1): exch_flag = False for j in range(len(li)-i-1): if li[j+1] =0 and tmp li[left]: left += 1 ... 阅读全文

posted @ 2019-06-16 16:48 小流江海 阅读(200) 评论(0) 推荐(0) 编辑

C语言排序

摘要: void swap(int *x, int *y){ int tmp; tmp = *x; *x = *y; *y = tmp; } void insert_sort(int *array, int n){ int i; for (i=1;i=0 && tmp array[j+1]){ swap(&array[j],... 阅读全文

posted @ 2019-06-16 16:45 小流江海 阅读(207) 评论(0) 推荐(0) 编辑

C语言计时

摘要: 1.time(NULL) 计时最小单位为s 2.time.h 3.windows.h 显示ms数 阅读全文

posted @ 2019-06-16 16:44 小流江海 阅读(758) 评论(0) 推荐(0) 编辑

导航