C\C++
zzhhccqq
这个作者很懒,什么都没留下…
展开
-
有序数组的二分查找程序
int BinarySearch(void *a, int low, int high, void * key){int mid;mid = (low + high)/2;if (low >= high - 1){if (a[low] == *key){return low;}else if (a[high] == *key){return hi原创 2014-07-31 17:05:57 · 508 阅读 · 0 评论 -
不用库函数编写strcpy函数
char * strcpy(char*strDest, const char* strSrc){ char * p; if (strDest == NULL || strSrc == NULL) return NULL; if (strDest == strSrc) return strDest; p = strDest;原创 2014-10-23 17:04:29 · 726 阅读 · 0 评论