C语言二分查找(指针)
C语言二分查找虽然说C有bsearch,但实际上真的很不好用,不如自己手写。最近想练习一下指针和malloc开动态空间。(其实就只是把所有能用指针的地方用指针的二分查找#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include <ctype.h>int *a;int main(){ int n, m, i;
原创
2021-01-24 22:10:47 ·
1175 阅读 ·
0 评论