摘要: 4 #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 (fp == NUL 阅读全文
posted @ 2023-12-19 18:09 二硫化碳 阅读(47) 评论(0) 推荐(0)
摘要: 4. #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; d 阅读全文
posted @ 2023-12-16 21:14 二硫化碳 阅读(42) 评论(0) 推荐(0)
摘要: 1.实验一 #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 *pmax); 阅读全文
posted @ 2023-12-03 13:56 二硫化碳 阅读(27) 评论(0) 推荐(0)
摘要: 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("%p 阅读全文
posted @ 2023-11-19 16:15 二硫化碳 阅读(42) 评论(0) 推荐(0)
摘要: 1.试验任务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[]); // 阅读全文
posted @ 2023-11-04 11:02 二硫化碳 阅读(29) 评论(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( 阅读全文
posted @ 2023-10-22 18:04 二硫化碳 阅读(27) 评论(0) 推荐(0)
摘要: //打印一个字符小人 #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); retur 阅读全文
posted @ 2023-10-07 11:27 二硫化碳 阅读(25) 评论(0) 推荐(0)