12 2020 档案

摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 10 typedef struct student { int id; char name[20]; char subject[20]; float perf; flo 阅读全文
posted @ 2020-12-25 12:42 漾崽既是温柔 阅读(94) 评论(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-16 19:45 漾崽既是温柔 阅读(83) 评论(0) 推荐(0)
摘要:任务1:一元二次方程的根不能设置成以函数返回值的方式返回给主调函数,因为函数返回值具有唯一性,而一元二次方程的根有两个。 #include <stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n: "); scanf 阅读全文
posted @ 2020-12-03 19:36 漾崽既是温柔 阅读(89) 评论(1) 推荐(0)