摘要: 实验一 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #define N 5 typedef struct student { long no; char name[20]; int score; }ST 阅读全文
posted @ 2021-12-22 10:58 IU是春天呐 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 实验1 #include <stdio.h> #define N 5 void output(int x[], int n); int main() { int x[N] = { 9,55,30,27,22 }; int i, k, t; printf("original array: 阅读全文
posted @ 2021-12-15 10:31 IU是春天呐 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 实验1 #include <stdio.h> #define N 5 void output(int x[], int n); int main() { int x[N] = { 9,55,30,27,22 }; int i, k, t; printf("original array:\n"); o 阅读全文
posted @ 2021-12-09 15:27 IU是春天呐 阅读(18) 评论(1) 推荐(0) 编辑
摘要: 实验一 #include <stdio.h> const int N = 4; int main() { int a[N] = { 2,0,2,1 }; char b[N] = { '2','0','2','1' }; int i; printf("sizeof(int)=%d\n", sizeof 阅读全文
posted @ 2021-12-01 11:39 IU是春天呐 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 实验一 #include <stdio.h> long long fac(int n); int main() { int i, n; printf("Enter n:"); scanf("%d", &n); for ( i = 1; i <= n; ++i) { printf("%d!=%lld\ 阅读全文
posted @ 2021-11-27 16:25 IU是春天呐 阅读(36) 评论(1) 推荐(0) 编辑
摘要: 实验一 #include<stdio.h> int main() { int num; scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &n 阅读全文
posted @ 2021-11-11 09:51 IU是春天呐 阅读(39) 评论(3) 推荐(0) 编辑