12 2020 档案

摘要:1.正确输出;生成了;可读#include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main() { FILE* fp; STU st[N]; int 阅读全文
posted @ 2020-12-31 23:48 sfasafasf 阅读(39) 评论(0) 推荐(0)
摘要:#include <stdio.h> const int N = 5; typedef struct student { long no; char name[20]; int score; }STU; void input(STU s[], int n); int findminlist(STU 阅读全文
posted @ 2020-12-24 21:40 sfasafasf 阅读(41) 评论(0) 推荐(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-17 11:11 sfasafasf 阅读(42) 评论(0) 推荐(0)
摘要:int main() { int n, symbol; while (scanf_s("%d %c", &n, &symbol) != EOF) { draw(n, symbol); // 函数调用 printf("\n"); } return 0; } void draw(int n, char 阅读全文
posted @ 2020-12-03 23:26 sfasafasf 阅读(38) 评论(0) 推荐(0)