摘要: 实验3: 是;是;是 实验四:是;是;否 #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main(){ F 阅读全文
posted @ 2020-12-29 21:38 我想转专业 阅读(72) 评论(0) 推荐(0) 编辑
摘要: // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入 阅读全文
posted @ 2020-12-22 23:12 我想转专业 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #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\n", &a[i] 阅读全文
posted @ 2020-12-15 23:31 我想转专业 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 实验一:不能,return只能返回一个数 实验二: #include<stdio.h> int func(int, int); int main() { int k=4,m=1,p1,p2; p1 = func(k,m) ; p2 = func(k,m) ; printf("%d,%d\n",p1, 阅读全文
posted @ 2020-11-28 18:56 我想转专业 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 #include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f% 阅读全文
posted @ 2020-11-15 13:42 我想转专业 阅读(75) 评论(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); return 0; } d=5/7*1 阅读全文
posted @ 2020-10-31 13:44 我想转专业 阅读(59) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main(){ printf("hello,C\n"); printf("202083290270\n"); printf("hello2020\n"); return 0; } #include<stdio.h> int main(){ while(0) 阅读全文
posted @ 2020-10-15 22:36 我想转专业 阅读(62) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main(){ printf("hello,C\n"); printf("202083290270\n"); printf("hello2020\n"); return 0; } #include<stdio.h> int main(){ while(0) 阅读全文
posted @ 2020-10-15 22:21 我想转专业 阅读(43) 评论(0) 推荐(0) 编辑