12 2020 档案

摘要:实验任务1 程序源代码: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 10 // 测试时将值改为3 typedef struct student { int id; /*学生学号 */ char name[20] 阅读全文
posted @ 2020-12-25 11:02 刘子涵 阅读(102) 评论(1) 推荐(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-18 13:11 刘子涵 阅读(98) 评论(0) 推荐(0)
摘要:#include <math.h> #include <stdio.h> void solve(double a, double b, double c); int main() { double a, b, c; printf("Enter a, b, c: "); while(scanf("%l 阅读全文
posted @ 2020-12-06 18:54 刘子涵 阅读(81) 评论(0) 推荐(0)