摘要: //task4.c#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ int i,n=0; FILE *fp; fp =fopen("data4.txt","r"); if(fp == NULL){ printf(" 阅读全文
posted @ 2024-06-18 11:54 elysia279525 阅读(22) 评论(0) 推荐(0)
摘要: //task4.c#include <stdio.h>#include <stdlib.h>#include <string.h>#define N 10typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author 阅读全文
posted @ 2024-06-09 11:03 elysia279525 阅读(55) 评论(0) 推荐(0)
摘要: //task1_1.c#include <stdio.h>#include <stdlib.h>#include <string.h>#define N 5 void input(int x[], int n);void output(int x[], int n);void find_min_ma 阅读全文
posted @ 2024-05-23 20:32 elysia279525 阅读(32) 评论(0) 推荐(0)
摘要: //task1_1.c#include <stdio.h>#include <stdlib.h>#include <string.h>#define N 4void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf(" 阅读全文
posted @ 2024-05-19 11:35 elysia279525 阅读(50) 评论(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 @ 2024-04-22 20:47 elysia279525 阅读(23) 评论(0) 推荐(0)
摘要: //task1.c#include <stdio.h>#include <stdlib.h>#include <time.h>#define N 5int main() { int number; int i; srand( time(0) ); // 以当前系统时间作为随机种子 for(i = 0 阅读全文
posted @ 2024-04-11 21:32 elysia279525 阅读(16) 评论(0) 推荐(0)
摘要: task1_1.c `#include <stdio.h> include <stdlib.h> int main() { printf(" O \n"); printf("\n"); printf("I I\n"); printf(" O \n"); printf("\n"); printf("I 阅读全文
posted @ 2024-03-11 21:17 elysia279525 阅读(125) 评论(2) 推荐(0)