摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { char ch; FILE* fp; fp = fopen("C:\\Users\\Mr.Yang\\Desktop\\c语言作业\\实验4\\data4.txt.txt", 阅读全文
posted @ 2022-12-24 14:39 是花花鸭 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时 阅读全文
posted @ 2022-12-21 09:30 是花花鸭 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 4 int main() { int a[N] = { 1, 9, 8, 4 }; char b[N] = { '1', '9', '8', '4' }; int i; prin 阅读全文
posted @ 2022-11-26 17:06 是花花鸭 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_text(int line, int 阅读全文
posted @ 2022-11-06 14:00 是花花鸭 阅读(23) 评论(0) 推荐(0) 编辑
摘要: #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) { number 阅读全文
posted @ 2022-10-25 12:14 是花花鸭 阅读(29) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { char ans1, ans2; #define 阅读全文
posted @ 2022-10-15 15:45 是花花鸭 阅读(47) 评论(0) 推荐(0) 编辑