摘要: //task 4#include<stdio.h> #define _CRT_SECURE_NO_WARNINGS #include<stdlib.h> int main(){ char ch; int count=0; FILE *fp; fp=fopen("data4.txt","r"); if 阅读全文
posted @ 2022-12-23 19:08 王兰花泽类 阅读(39) 评论(0) 推荐(0) 编辑
摘要: //task 1 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 c 阅读全文
posted @ 2022-12-21 09:05 王兰花泽类 阅读(39) 评论(0) 推荐(0) 编辑
摘要: task1.1 是 4个 是 1个 task1.2 是 4个 是 1个 task2 #include <stdio.h> #define N 13 int days_of_year(int year, int month, int day); int main() { int year, month 阅读全文
posted @ 2022-11-23 16:04 王兰花泽类 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 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[]); void pri 阅读全文
posted @ 2022-11-03 15:25 王兰花泽类 阅读(32) 评论(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 阅读全文
posted @ 2022-10-22 20:53 王兰花泽类 阅读(16) 评论(0) 推荐(0) 编辑
摘要: //task1#include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } //task2.1#include<stdio.h> #include<math.h> int 阅读全文
posted @ 2022-10-14 14:09 王兰花泽类 阅读(16) 评论(0) 推荐(0) 编辑