摘要: #include "stdio.h" int search(int ary[], int value, int len); int main(void) { int ary[6] = { 1, 2, 3, 4, 5, 6 }; int index = search(ary, 4, 6); printf("%d\n", index); index = se... 阅读全文
posted @ 2016-09-14 11:28 盘子脸 阅读(504) 评论(0) 推荐(0) 编辑
摘要: C语言: // ConsoleApplication3.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "stdio.h" #include "limits.h" int count_bits(unsigned x) { unsigned int bits = 0; while (x) { ... 阅读全文
posted @ 2016-09-14 10:00 盘子脸 阅读(1509) 评论(0) 推荐(0) 编辑