⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.h

📁 it is a great algorithm to secarching.
💻 H
字号:
#ifndef SEARCH_H#define SEARCH_H#include <stdlib.h>/* binarysearch() - A binary search implementation which takes the same * arguments as the C library function bsearch() provided by stdlib.h.  It * searches the sorted array at address base, which has nmemb elements, each of * which is size bytes long.  compar is a pointer to a comparison function. * The function compares two array elements, and returns a negative, zero, or * positive integer depending on whether the first array element is less than, * equal to, or greater than the second. */void *binarysearch(const void *key, const void *base, size_t nmemb,		   size_t size, int (*compar)(const void *, const void *));#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -