12 2020 档案
摘要:#include<stdio.h> #include<stdlib.h> int main(){ FILE *fin, *fout; char ch; fin = fopen("1.txt","r"); if(fin == NULL){ printf("fail to open 1\n"); exi
阅读全文
摘要:#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 3 typedef struct students{ int id; char name[20];// char subject[10]; float perd; fl
阅读全文
摘要:#include<stdio.h> const int N = 3; int main(){ int a[N] = {1, 2, 3}; int i; for(i = 0; i < N; i++) printf("%d: %d\n", &a[i], a[i]); printf("通过地址间接访问数组
阅读全文