摘要: task4 #include <stdio.h> int main(){ int count=0; char ch; FILE *fp; // 以读的方式打开文本文件data1.txt fp = fopen("data4.txt", "r"); // 如果打开文件失败,输出提示信息并返回 if(fp 阅读全文
posted @ 2024-06-20 23:16 Mollyyyyy 阅读(35) 评论(0) 推荐(0)
摘要: task4 #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double s 阅读全文
posted @ 2024-06-10 10:37 Mollyyyyy 阅读(18) 评论(0) 推荐(0)
摘要: task1-1 #include <stdio.h> #include <stdlib.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, 阅读全文
posted @ 2024-05-26 15:27 Mollyyyyy 阅读(12) 评论(0) 推荐(0)
摘要: task1-1 #include <stdio.h> #include <stdlib.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", 阅读全文
posted @ 2024-05-19 17:00 Mollyyyyy 阅读(26) 评论(0) 推荐(0)
摘要: task1 #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); void print_spaces(int n); void print_blank_ 阅读全文
posted @ 2024-04-26 18:49 Mollyyyyy 阅读(16) 评论(0) 推荐(0)
摘要: //task1#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){ 阅读全文
posted @ 2024-04-14 12:44 Mollyyyyy 阅读(26) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); system("pause"); return 0; } #include <stdio.h> int main() { printf( 阅读全文
posted @ 2024-03-17 12:57 Mollyyyyy 阅读(41) 评论(0) 推荐(0)