2019年6月25日

摘要: part 2 阅读全文
posted @ 2019-06-25 00:28 7365 阅读(135) 评论(0) 推荐(0) 编辑

2019年6月10日

摘要: part1 part2 阅读全文
posted @ 2019-06-10 23:23 7365 阅读(125) 评论(2) 推荐(0) 编辑

2019年5月27日

摘要: #include const int N=5; int binarySearch(int x[], int n, int item); int main() { int a[N]={1,3,9,16,21}; int i,index, key; printf("数组a中的数据:\n"); for(i=0;i=0) printf("%d在数组... 阅读全文
posted @ 2019-05-27 22:09 7365 阅读(123) 评论(2) 推荐(0) 编辑

2019年4月25日

摘要: include int findMax(int a[], int n); // 函数声明 const int N=5; int main() { int a[N]; int max, i; printf("输入%d个整数: \n", N); for(i=0;ik) k=a[i]; } return k; } inclu... 阅读全文
posted @ 2019-04-25 18:18 7365 阅读(85) 评论(0) 推荐(0) 编辑

2019年4月15日

摘要: #include #include int main() { int a,b,c; a=101; c=0; while(asqrt(a)){ printf("%5d",a); c++; if(c%5==0) printf("\n")... 阅读全文
posted @ 2019-04-15 22:22 7365 阅读(128) 评论(1) 推荐(0) 编辑

2019年4月1日

摘要: #include int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // 定义一个数组a,数组中连续存放了字符串常量hello,world! int y=3, z=4; printf("%d %d\n", y, z); printf("y=%d, ... 阅读全文
posted @ 2019-04-01 22:08 7365 阅读(91) 评论(2) 推荐(0) 编辑

2019年3月23日

摘要: #include <stdio.h> int main() { int x; printf("输入一个整数: \n"); scanf("%d",&x); if(x%2!=0) printf("是奇数"); else printf("是偶数"); return 0; } 阅读全文
posted @ 2019-03-23 16:43 7365 阅读(82) 评论(0) 推荐(0) 编辑

导航