摘要: TASK1 点击查看代码 // 将图书信息写入文本文件data1.txt // 再从文件中读取图书信息,打印输出到屏幕上,并显示行号 #include <stdio.h> #define N 80 #define M 100 typedef struct { char name[N]; // 书名 阅读全文
posted @ 2024-06-17 23:36 吴煜菲 阅读(33) 评论(0) 推荐(0)
摘要: TASK1 点击查看代码 // P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时, 阅读全文
posted @ 2024-06-03 22:08 吴煜菲 阅读(48) 评论(0) 推荐(0)
摘要: TASK1.1 点击查看代码 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, in 阅读全文
posted @ 2024-05-25 18:12 吴煜菲 阅读(37) 评论(0) 推荐(0)
摘要: TASK1-1 点击查看代码 #include <stdio.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a)); / 阅读全文
posted @ 2024-05-17 18:51 吴煜菲 阅读(41) 评论(0) 推荐(0)
摘要: TASK 1 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[ 阅读全文
posted @ 2024-04-25 19:46 吴煜菲 阅读(45) 评论(0) 推荐(0)
摘要: TASK 1 点击查看代码 #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;++i){ n 阅读全文
posted @ 2024-04-14 22:52 吴煜菲 阅读(26) 评论(0) 推荐(0)
摘要: task1 `#include <stdio.h> int main() { printf(" o \n"); printf(" \n"); printf("I I \n"); printf(" o \n"); printf("<H> \n"); printf("I I \n"); return 0 阅读全文
posted @ 2024-03-14 17:47 吴煜菲 阅读(46) 评论(0) 推荐(0)