摘要: 任务1.1 #define _CRT_SECURE_NO_WARNINGS // 将图书信息写入文本文件data1.txt #include <stdio.h> #define N 80 typedef struct { char name[N]; // 书名 char author[N]; // 阅读全文
posted @ 2023-12-21 14:30 蓝澄海 阅读(16) 评论(0) 推荐(0)
摘要: 任务1: #define _CRT_SECURE_NO_WARNINGS //P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include <string.h> #d 阅读全文
posted @ 2023-12-17 19:08 蓝澄海 阅读(14) 评论(0) 推荐(0)
摘要: 任务1.1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[ 阅读全文
posted @ 2023-12-02 19:12 蓝澄海 阅读(20) 评论(0) 推荐(0)
摘要: 任务1.1 #include<stdio.h> #define N 4 void test1() { int a[N] = { 1,9,8,4 }; int i; printf("sizeof(a)=%d\n", sizeof(a)); for (i = 0; i < N; ++i) printf( 阅读全文
posted @ 2023-11-14 20:01 蓝澄海 阅读(26) 评论(0) 推荐(0)
摘要: 任务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[]); void p 阅读全文
posted @ 2023-10-30 19:41 蓝澄海 阅读(23) 评论(0) 推荐(0)
摘要: #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(0)); for (i 阅读全文
posted @ 2023-10-17 12:49 蓝澄海 阅读(23) 评论(0) 推荐(0)
摘要: 1 // 打印一个字符小人 2 3 #include <stdio.h> 4 int main() 5 { 6 printf(" o \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 printf(" o \n"); 10 printf("<H>\n"); 阅读全文
posted @ 2023-10-06 22:23 蓝澄海 阅读(18) 评论(0) 推荐(0)