2023年12月21日
摘要: task4 code #include <stdio.h> #include <string.h> #define N 5 #define M 80 int main() { char songs[N][M]; FILE* fp; fp = fopen("data1.txt", "r"); if ( 阅读全文
posted @ 2023-12-21 10:12 Bulletproof_Picasso 阅读(3) 评论(0) 推荐(0) 编辑
  2023年12月14日
摘要: task_4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 阅读全文
posted @ 2023-12-14 23:15 Bulletproof_Picasso 阅读(3) 评论(0) 推荐(0) 编辑
  2023年11月27日
摘要: task1_1 code #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 阅读全文
posted @ 2023-11-27 16:59 Bulletproof_Picasso 阅读(5) 评论(0) 推荐(0) 编辑
  2023年11月14日
摘要: task1.1 code #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-14 15:14 Bulletproof_Picasso 阅读(4) 评论(0) 推荐(0) 编辑
  2023年10月31日
摘要: task1 代码 #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-10-31 17:49 Bulletproof_Picasso 阅读(1) 评论(0) 推荐(0) 编辑
  2023年10月16日
摘要: task1 #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) ) 阅读全文
posted @ 2023-10-16 20:29 Bulletproof_Picasso 阅读(3) 评论(0) 推荐(0) 编辑
  2023年9月28日
摘要: task1代码 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); system( 阅读全文
posted @ 2023-09-28 15:25 Bulletproof_Picasso 阅读(7) 评论(0) 推荐(0) 编辑