摘要: 注:实验一至三于周二实验课完成 任务1-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) p 阅读全文
posted @ 2022-06-14 10:54 哈波将军 阅读(20) 评论(1) 推荐(0) 编辑
摘要: 任务1-1 // 将图书信息写入文本文件data1.txt #include <stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 }Book; int main() 阅读全文
posted @ 2022-06-07 09:46 哈波将军 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 任务1.1 #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 2}; char b[N] = {'2', '0', '2', '2'}; int i; printf("sizeof(int) = %d\n", sizeo 阅读全文
posted @ 2022-05-10 09:45 哈波将军 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 任务 1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 80 void printText(int line, int col, char text[]);//函数声明 void printSpaces(int n); 阅读全文
posted @ 2022-04-26 10:39 哈波将军 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 任务1 任务2 任务3 任务4 任务5 任务6-1 任务6-2 任务6-3 阅读全文
posted @ 2022-04-19 11:41 哈波将军 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-31 21:23 哈波将军 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-31 09:30 哈波将军 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-31 08:58 哈波将军 阅读(6) 评论(0) 推荐(0) 编辑