12 2020 档案
摘要:3.正确输出 生成了 正确 直观可读 4.正确输出了 正确生成了 不直观可读 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score;
阅读全文
摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20]
阅读全文
摘要:#include <stdio.h> const int N=3; int main() { int a[3] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i]
阅读全文
摘要:1.函数的返回值只能有一个,而一元二次方程可能有两个根。 2. #include <stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n: "); scanf("%d", &n); for(i=1; i<=n; ++
阅读全文

浙公网安备 33010602011771号