摘要: 4. 实验任务4:文件简单应用 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { FILE* fp; char ch; int count=0; fp = fopen("E:\\stud 阅读全文
posted @ 2022-12-24 13:32 不想歪七七 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1. 实验任务1 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student{ int id; char name 阅读全文
posted @ 2022-12-21 09:46 不想歪七七 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1. 实验任务1 #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", sizeof(in 阅读全文
posted @ 2022-11-23 14:44 不想歪七七 阅读(16) 评论(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 test[]); void pri 阅读全文
posted @ 2022-11-03 19:47 不想歪七七 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1. 实验任务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) { n 阅读全文
posted @ 2022-10-19 16:59 不想歪七七 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1.打印一个字符小人 #include<stdio.h> int main() { printf(" O\t O\n"); printf("<H>\t<H>\n"); printf("I I\tI I\n"); return 0; } 2.现摄氏度温度C与华氏度温度F的转换 #include<std 阅读全文
posted @ 2022-10-13 12:57 不想歪七七 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1.打印一个字符小人 #include<stdio.h> int main() { printf(" O\t O\n"); printf("<H>\t<H>\n"); printf("I I\tI I\n"); return 0; } 2.现摄氏度温度C与华氏度温度F的转换 #include<std 阅读全文
posted @ 2022-10-12 09:37 不想歪七七 阅读(53) 评论(0) 推荐(0) 编辑