摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-31 19:00 明月与暗影 阅读(104) 评论(1) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) prin 阅读全文
posted @ 2019-12-17 22:51 明月与暗影 阅读(121) 评论(4) 推荐(0)
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; printf( 阅读全文
posted @ 2019-12-03 21:55 明月与暗影 阅读(97) 评论(3) 推荐(0)
摘要: 实验总结与体会 敲代码一不小心就容易出错,每次都要仔细检查,必要时还要从书上查查。 阅读全文
posted @ 2019-11-04 22:39 明月与暗影 阅读(227) 评论(3) 推荐(0)
摘要: #include<stdio.h> int main() { printf("201983270518"); printf("Hello,World!"); return 0; } #include <stdio.h> int main() { int x; printf("输入一个整数: \n"); scanf("%d",&x); // 在×××处填写相应表达式 // 使得当表达式成立时,判定x 阅读全文
posted @ 2019-10-21 21:37 明月与暗影 阅读(77) 评论(0) 推荐(0)