12 2019 档案

摘要:Part1验证性实验 验证性实验2 // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct stud 阅读全文
posted @ 2019-12-29 23:38 赧然的贼 阅读(162) 评论(1) 推荐(0)
摘要:#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-22 17:40 赧然的贼 阅读(111) 评论(3) 推荐(0)
摘要:// 这个程序用于观察数组中的一组数据元素在内存中是否是连续存放的 // 以及数组元素的直接访问与间接访问 #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {1, 2, 3}; // 定义一维 阅读全文
posted @ 2019-12-16 19:59 赧然的贼 阅读(125) 评论(5) 推荐(0)
摘要:#include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; printf( 阅读全文
posted @ 2019-12-01 10:26 赧然的贼 阅读(91) 评论(3) 推荐(0)