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
阅读全文
摘要:#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
阅读全文
摘要:#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]
阅读全文
摘要: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
阅读全文
浙公网安备 33010602011771号