摘要:
// 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i 阅读全文
摘要:
#include<stdio.h> #include<math.h> int isprime(int n); int main(){ int i; for(i=101;i<=200;i++){ if(isprime(i)) printf("%4d",i); } return 0; } int isp 阅读全文