布布bu

导航

2020年12月30日 #

实验7

摘要: 实验三数据正确,且直观可读 #include<stdio.h> #include<string.h> #include<stdlib.h> #define N 10 typedef struct student{ int num; char name[20]; int score; }STU; in 阅读全文

posted @ 2020-12-30 22:09 布布bu 阅读(74) 评论(2) 推荐(0) 编辑

2020年12月29日 #

实验2 实验3 实验4

摘要: 实验4 //一元二次方程求解(函数实现方式) //重复执行,直到按下Ctrl+z结束 #include<math.h> #include<stdio.h> //函数声明 void solve(double a,double b,double c); //主函数 int main(){ double 阅读全文

posted @ 2020-12-29 00:16 布布bu 阅读(87) 评论(0) 推荐(0) 编辑

2020年12月21日 #

实验6

摘要: // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 10 // 运行程序输 阅读全文

posted @ 2020-12-21 23:43 布布bu 阅读(61) 评论(2) 推荐(0) 编辑

2020年12月15日 #

实验5嘿嘿

摘要: #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 00:08 布布bu 阅读(63) 评论(3) 推荐(0) 编辑

2020年12月3日 #

实验4

摘要: //一元二次方程求解(函数实现方式) //重复执行,直到按下Ctrl+z结束 #include<math.h> #include<stdio.h> //函数声明 void solve(double a,double b,double c); //主函数 int main(){ double a, b 阅读全文

posted @ 2020-12-03 20:20 布布bu 阅读(109) 评论(1) 推荐(0) 编辑

2020年11月18日 #

实验三。

摘要: //一元二次方程求解 //重复执行,直到按ctrl+z结束 // #include<math.h> #include<stdio.h> int main(){ float a,b,c,x1,x2; float delta, real, imag; printf("Enter a, b, c: "); 阅读全文

posted @ 2020-11-18 18:46 布布bu 阅读(103) 评论(1) 推荐(0) 编辑

2020年11月1日 #

实验2

摘要: // ex1.cpp #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; } 结果不同 阅读全文

posted @ 2020-11-01 18:54 布布bu 阅读(73) 评论(2) 推荐(0) 编辑

2020年10月17日 #

实验作业

摘要: /* A simple C progrom*/ #include <stdio.h> int main(){ printf("my stuno is:202083450008 2020这一次我要赢\n"); return 0; } /*循环打印字符*/ #include <stdio.h> int 阅读全文

posted @ 2020-10-17 13:13 布布bu 阅读(39) 评论(0) 推荐(0) 编辑