12 2020 档案
摘要:实验任务1 程序源代码: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 10 // 测试时将值改为3 typedef struct student { int id; /*学生学号 */ char name[20]
阅读全文
摘要:#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]
阅读全文
摘要:#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
阅读全文
浙公网安备 33010602011771号