2022年12月28日
摘要: // 将图书信息写入文本文件data1.txt #include <stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 } Book; int main() { Bo 阅读全文
posted @ 2022-12-28 07:16 azthos 阅读(9) 评论(0) 推荐(0) 编辑
摘要: // P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入 阅读全文
posted @ 2022-12-28 01:04 azthos 阅读(8) 评论(0) 推荐(0) 编辑
2022年11月29日
摘要: #include <stdio.h> #include <stdlib.h> #define N 2 #define M 4 int main() { int a[N][M] = {{1, 9, 8, 4}, {2, 0, 2, 2}}; char b[N][M] = {{'1', '9', '8' 阅读全文
posted @ 2022-11-29 20:11 azthos 阅读(19) 评论(0) 推荐(0) 编辑
2022年11月7日
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // 函数声明 vo 阅读全文
posted @ 2022-11-07 20:27 azthos 阅读(8) 评论(0) 推荐(0) 编辑
2022年10月25日
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0));// 以当前系统时间作为随机种子 for (i = 0; i < N 阅读全文
posted @ 2022-10-25 12:23 azthos 阅读(8) 评论(0) 推荐(0) 编辑
2022年10月18日
摘要: //#include <stdio.h> //int main() //{ //printf(" O \n"); //printf("<H>\n"); //printf("I I\n"); //return 0; //} /* #include <stdio.h> int main() { prin 阅读全文
posted @ 2022-10-18 20:16 azthos 阅读(22) 评论(0) 推荐(0) 编辑