摘要: text 4 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { FILE* fp; fp = fopen("D:\\.temp\\data4.txt", "r"); if (feof(fp)) { printf("fail 阅读全文
posted @ 2022-12-23 15:20 hsuws 阅读(34) 评论(0) 推荐(0) 编辑
摘要: task 1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int i 阅读全文
posted @ 2022-12-21 09:46 hsuws 阅读(9) 评论(0) 推荐(0) 编辑
摘要: task1 #include <stdio.h> #define N 4 int main() { int a[N] = { 1, 9, 8, 4 }; char b[N] = { '1', '9', '8', '4' }; int i; printf("sizeof(int) = %d\n", s 阅读全文
posted @ 2022-11-23 09:15 hsuws 阅读(19) 评论(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[]); // 函 阅读全文
posted @ 2022-11-03 19:48 hsuws 阅读(18) 评论(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 = 阅读全文
posted @ 2022-10-19 21:19 hsuws 阅读(23) 评论(0) 推荐(0) 编辑
摘要: task1 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0 阅读全文
posted @ 2022-10-13 11:33 hsuws 阅读(4) 评论(0) 推荐(0) 编辑