摘要:
ex3 1.正确,生成了 2.正确,直观可读 ex4 子任务1 1.正确,生成了 2.不直观可读 子任务2 #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct student { int num,score; char n 阅读全文
posted @ 2020-12-29 20:36
H11de
阅读(33)
评论(0)
推荐(0)
|
摘要:
ex3 1.正确,生成了 2.正确,直观可读 ex4 子任务1 1.正确,生成了 2.不直观可读 子任务2 #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct student { int num,score; char n 阅读全文
posted @ 2020-12-29 20:36
H11de
阅读(33)
评论(0)
推荐(0)
摘要:
ex1 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; float perf; 阅读全文
posted @ 2020-12-21 14:06
H11de
阅读(64)
评论(1)
推荐(0)
摘要:
实验任务1 #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", 阅读全文
posted @ 2020-12-14 20:47
H11de
阅读(77)
评论(0)
推荐(0)
摘要:
ex1 一元二次方程的根不能设计成为函数的返回值,因为函数只能返回一个值,但是一元二次方程的根可能有两个。 ex2_1 #include <stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n: "); scanf( 阅读全文
posted @ 2020-11-30 17:01
H11de
阅读(105)
评论(0)
推荐(0)
摘要:
#include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, 阅读全文
posted @ 2020-11-16 16:08
H11de
阅读(95)
评论(2)
推荐(0)
摘要:
#include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } line6:a 阅读全文
posted @ 2020-11-03 21:59
H11de
阅读(64)
评论(0)
推荐(0)
摘要:
# include <stdio.h> int main() { printf("202083290316\n"); printf("好好学习,别做咸鱼"); return 0; #include <stdio.h> int main() { while(1) printf("Yvonne"); r 阅读全文
posted @ 2020-10-17 21:19
H11de
阅读(79)
评论(0)
推荐(0)
|