摘要: #include <stdio.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; }STU; // 函数声明 void i 阅读全文
posted @ 2019-12-23 19:48 Yang、Skye 阅读(124) 评论(3) 推荐(0)
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i 阅读全文
posted @ 2019-12-17 22:22 Yang、Skye 阅读(97) 评论(3) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag=1; for(i=2;i<j;i++) 阅读全文
posted @ 2019-12-01 22:05 Yang、Skye 阅读(101) 评论(2) 推荐(0)
摘要: part 2 /* 编程找出5个整数的最大数和最小数 《C语言程序设计教程学习指导》p122实验内容(3) */ #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第 阅读全文
posted @ 2019-11-18 10:10 Yang、Skye 阅读(122) 评论(2) 推荐(0)
摘要: part 1 结果: line 11 14改变了宽度 line 12 13 15改变了精度 此为正确代码 正确结果 part 2 可以替换 运行结果 结果 part 3 阅读全文
posted @ 2019-11-03 19:26 Yang、Skye 阅读(75) 评论(2) 推荐(0)
摘要: 总结:第一次用博客园不太熟练,c语言的软件也不太熟练,需要多加练习 阅读全文
posted @ 2019-10-20 22:00 Yang、Skye 阅读(99) 评论(0) 推荐(0)