06 2022 档案

摘要:#include <stdio.h> #define N 4 int main() { int x[N]={1,9,8,4}; int i,*p=x; /*数组方式*/ for(i=0;i<N;i++) printf("%d",x[i]); printf("\n"); //指针方式1 for(i=0 阅读全文
posted @ 2022-06-14 00:41 文墨青 阅读(28) 评论(0) 推荐(0)
摘要:#include <stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 }Book; int main() { Book x[N] = { {"一九八四", "乔治. 阅读全文
posted @ 2022-06-05 18:19 文墨青 阅读(14) 评论(0) 推荐(0)