12 2020 档案

实验2与实验3(T-T)
摘要:实验2 实验任务一 //ex1.cpp #include <stdio.h> #include<stdlib.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=% 阅读全文

posted @ 2020-12-29 20:07 helianthus-JUN 阅读(113) 评论(0) 推荐(0)

TASK666:| 结构体
摘要:task1: // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 2 // 减小N可测试 typedef struct student { int id; //学号 ch 阅读全文

posted @ 2020-12-24 18:15 helianthus-JUN 阅读(93) 评论(2) 推荐(0)

实验五 数组与指针:)
摘要:ex1 #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],a[ 阅读全文

posted @ 2020-12-18 12:18 helianthus-JUN 阅读(129) 评论(2) 推荐(0)

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

posted @ 2020-12-06 11:37 helianthus-JUN 阅读(122) 评论(0) 推荐(0)

导航