2019年12月25日
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-25 16:18 大白鹅鹅鹅 阅读(74) 评论(2) 推荐(0)
  2019年12月20日
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; 阅读全文
posted @ 2019-12-20 23:22 大白鹅鹅鹅 阅读(85) 评论(0) 推荐(0)
  2019年12月15日
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i 阅读全文
posted @ 2019-12-15 16:37 大白鹅鹅鹅 阅读(103) 评论(1) 推荐(0)
  2019年11月29日
摘要: // 函数fun()的功能是: 找出能够被x整除并且是偶数的数, // 把这些数保存在数组bb中,并按从大到小的顺序输出。 // 例如,当x=20时,依次输出: 20 10 4 2。 #include <stdio.h> #include <stdlib.h> void fun(int k,int 阅读全文
posted @ 2019-11-29 21:19 大白鹅鹅鹅 阅读(85) 评论(1) 推荐(0)
  2019年11月18日
摘要: #include<stdio.h> int main() { double a,s,t m=0; int b,n; printf("输入n和a:"); scanf("%d%lf",&n,&a); for(b=1,a=0;b<=n;b=b+1) { m=a+m*10; t=b/m; } printf( 阅读全文
posted @ 2019-11-18 11:26 大白鹅鹅鹅 阅读(164) 评论(0) 推荐(0)
  2019年11月2日
摘要: #include<stdio.h> int main() { double x,y; char c1,c2,c3; int a1,a2,a3; scanf("%d%d%d",&a1,&a2,&a3); prinyf("%d,%d,%d\n"a1,a2,a3); scanf("%c%c%c",&c1,&c2,&c3); printf("%c%c%C\n",c1,c2,c3); scanf("%lf, 阅读全文
posted @ 2019-11-02 01:31 大白鹅鹅鹅 阅读(143) 评论(3) 推荐(0)
  2019年10月20日
摘要: -0 阅读全文
posted @ 2019-10-20 14:42 大白鹅鹅鹅 阅读(102) 评论(0) 推荐(0)