摘要:
Part1: ex1_1,ex1_2改动后 Part2: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef 阅读全文
posted @ 2019-12-31 00:44
怪盗kt
阅读(138)
评论(2)
推荐(0)
摘要:
ex1_2 #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int s 阅读全文
posted @ 2019-12-23 11:46
怪盗kt
阅读(105)
评论(2)
推荐(0)
摘要:
Part2: ex2_1_1 // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int i 阅读全文
posted @ 2019-12-17 23:29
怪盗kt
阅读(89)
评论(2)
推荐(0)
摘要:
Part1: #include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; 阅读全文
posted @ 2019-12-03 22:38
怪盗kt
阅读(138)
评论(2)
推荐(0)
浙公网安备 33010602011771号