摘要: test4 #include <stdio.h> int main(){ int count=0; char ch; FILE *fp; // 以读的方式打开文本文件data1.txt fp = fopen("C://Users//21020//Desktop//data4.txt", "r"); 阅读全文
posted @ 2024-06-21 16:53 Miteroso 阅读(34) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char subje 阅读全文
posted @ 2024-06-08 21:15 Miteroso 阅读(33) 评论(0) 推荐(0)
摘要: 实验1.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 @ 2024-05-24 15:34 Miteroso 阅读(24) 评论(0) 推荐(0)
摘要: 实验1.1#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)); // 输出int类型数 阅读全文
posted @ 2024-05-18 22:47 Miteroso 阅读(24) 评论(0) 推荐(0)
摘要: 实验任务3-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[]); void pri 阅读全文
posted @ 2024-04-27 00:02 Miteroso 阅读(40) 评论(0) 推荐(0)
摘要: 实验任务1 #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 13:34 Miteroso 阅读(39) 评论(0) 推荐(0)
摘要: include<stdio.h> include<stdlib.h> int main() { printf(" 0\n"); printf("\n"); printf("I I\n"); printf(" 0\n"); printf("\n"); printf("I I\n"); system(" 阅读全文
posted @ 2024-03-16 10:26 Miteroso 阅读(29) 评论(0) 推荐(0)