摘要: task4 #include <stdio.h> #include <ctype.h> int main() { FILE *file; int count = 0; int ch; file = fopen("d:\\data\\data4.txt", "r"); if (file == NULL 阅读全文
posted @ 2023-12-21 21:02 new沢 阅读(11) 评论(0) 推荐(0)
摘要: task4 源码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售 阅读全文
posted @ 2023-12-17 17:20 new沢 阅读(12) 评论(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, int *pmax 阅读全文
posted @ 2023-12-03 17:27 new沢 阅读(14) 评论(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)); // 输出int类 阅读全文
posted @ 2023-11-19 17:05 new沢 阅读(10) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <stdlib.h>#include <time.h>#include <windows.h>#define N 80 void print_text(int line, int col, char text[]); // 函数声明void pr 阅读全文
posted @ 2023-11-07 16:22 new沢 阅读(13) 评论(0) 推荐(0)
摘要: task.1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 374 #define N2 465 int main() { int number; int i; srand( time( 阅读全文
posted @ 2023-10-22 23:09 new沢 阅读(14) 评论(0) 推荐(0)
摘要: task1 1.源代码 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 2.实验结果 task 阅读全文
posted @ 2023-10-02 16:31 new沢 阅读(32) 评论(0) 推荐(0)