摘要: 实验3 出现了按分数由高到低的排序 出现了文本file3.dat,其数据直观可读 实验4 1.出现了按分数由高到低的排序 出现了文本file4.dat,其数据不是直观可读 2 #include<stdio.h>#include<stdlib.h>#define N 10typedef struct 阅读全文
posted @ 2020-12-26 13:21 我想学好c语言 阅读(77) 评论(1) 推荐(0) 编辑
摘要: 实验一 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; char subjet[20]; float perf; f 阅读全文
posted @ 2020-12-18 16:34 我想学好c语言 阅读(80) 评论(1) 推荐(0) 编辑
摘要: e1. #include<stdio.h> const int N = 3; int main() { int a[N] = { 1,2,3 }; int i; printf("通过数组名及下标直接访问数组元素:\n"); for (i = 0; i < N; i++) printf("%d:%d\ 阅读全文
posted @ 2020-12-13 10:59 我想学好c语言 阅读(107) 评论(1) 推荐(0) 编辑
摘要: 实验1,我认为不可以。因为若delta小于0,输出的不是整型。 实验二。 ex2-1 #include<stdio.h> long long fac(int n); int main() { int i, n; printf("Enter n:"); scanf("%d", &n); for(i=1 阅读全文
posted @ 2020-11-28 10:29 我想学好c语言 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> #include<math.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a,b,c"); while (scanf("%f%f%f", &a, &b 阅读全文
posted @ 2020-11-14 12:50 我想学好c语言 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 实验一#include<stdio.h> int main() { int a = 5, b = 7, c = 100, d, e, f; d = a / b * c; e = a * c / b; f = c / b * a; printf("d=%d,e=%d,f=%d\n", d, e, f) 阅读全文
posted @ 2020-11-01 13:25 我想学好c语言 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { printf("my stunpo is 202083450056 2020, I improve my C language\n"); return 0; } #include<stdio.h> int main() { while ( 阅读全文
posted @ 2020-10-17 09:52 我想学好c语言 阅读(111) 评论(1) 推荐(0) 编辑