摘要: task4.c #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { long i = 0; char ch; FILE* fp; fp = fopen("c://data//data4.txt", "r"); while (! 阅读全文
posted @ 2023-12-21 12:14 liritty 阅读(24) 评论(0) 推荐(0)
摘要: task4.c #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 21:10 liritty 阅读(28) 评论(0) 推荐(0)
摘要: task1_1.c #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 *pm 阅读全文
posted @ 2023-12-03 20:09 liritty 阅读(44) 评论(0) 推荐(0)
摘要: task 1_1.c #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 @ 2023-11-19 20:58 liritty 阅读(43) 评论(0) 推荐(0)
摘要: task1.c #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 @ 2023-11-05 21:36 liritty 阅读(40) 评论(0) 推荐(0)
摘要: 试验任务1 task 1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 374 #define N2 465 int main() { int number; int i; sran 阅读全文
posted @ 2023-10-22 17:23 liritty 阅读(23) 评论(0) 推荐(0)
摘要: 1.试验任务1 task1.c //打印一个字符小人 #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } task1_1.c //在垂直方向上打印出两个小人 #i 阅读全文
posted @ 2023-10-04 22:54 liritty 阅读(123) 评论(0) 推荐(0)