摘要:
task1.1 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for(i=0; i<N; ++i) printf("%d", x[ 阅读全文
摘要:
1.实验任务1:文本文件数据格式化读写 task1_1.c #include<stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; //书名 char author[M]; //作者 } Book; int main() { 阅读全文