摘要: #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; printf("%d", x[i]); printf("\n"); for(p=x; p<x+N; ++p) printf("%d" 阅读全文
posted @ 2022-06-13 20:54 布绒亦 阅读(10) 评论(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-06 22:00 布绒亦 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1,是,每个元素占用4个字节 2,是,每个元素占用1个字节 3,一样,一样 1,是,每个元素占用4个字节 2,是,每个元素占用1个字节 阅读全文
posted @ 2022-05-08 14:15 布绒亦 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-25 11:27 布绒亦 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1.取2018到2022之间的随机数 2.取1000以内的随机数 3.取随机学号 阅读全文
posted @ 2022-04-16 09:45 布绒亦 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-28 22:39 布绒亦 阅读(15) 评论(2) 推荐(0) 编辑