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 阅读全文
posted @ 2020-12-30 12:20 鸣蜩 阅读(154) 评论(4) 推荐(0)
摘要:#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 阅读全文
posted @ 2020-12-22 22:25 鸣蜩 阅读(82) 评论(2) 推荐(0)
摘要:#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("通过地址间接访问数组 阅读全文
posted @ 2020-12-16 14:42 鸣蜩 阅读(61) 评论(2) 推荐(0)