2021年6月17日

实验7

摘要: // 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("D:\\实验七1\ 阅读全文

posted @ 2021-06-17 21:30 星星泡饭 阅读(52) 评论(0) 推荐(0) 编辑

2021年6月10日

实验六

摘要: // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输 阅读全文

posted @ 2021-06-10 19:44 星星泡饭 阅读(42) 评论(3) 推荐(0) 编辑

2021年5月26日

实验五

摘要: #include <stdio.h> const int N = 3; int main() { int a[N] = { 1, 2, 3 }; int i; printf("通过数组名和下标直接访问数组元素:\n"); for (i = 0; i < N; i++) printf("%d: %d\ 阅读全文

posted @ 2021-05-26 20:16 星星泡饭 阅读(38) 评论(1) 推荐(0) 编辑

2021年4月29日

实验四

摘要: #define _CRT_SECURE_NO_DEPRECATE #include <stdio.h> long long fun(int n); int main() { int n; long long f; while (scanf("%d", &n) != EOF) { f = fun(n) 阅读全文

posted @ 2021-04-29 21:54 星星泡饭 阅读(45) 评论(1) 推荐(0) 编辑

2021年4月15日

实验三

摘要: 1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); // 以当前系统时间作为随机种子 for (n = 1; n <= N; n++ 阅读全文

posted @ 2021-04-15 12:47 星星泡饭 阅读(61) 评论(3) 推荐(0) 编辑

2021年4月1日

实验2

摘要: 阅读全文

posted @ 2021-04-01 21:49 星星泡饭 阅读(39) 评论(6) 推荐(0) 编辑

2021年3月16日

实验1

摘要: #include<stdio.h> int main(){ printf(" 0 0 \n"); printf("<H> <H>\n"); printf("I I I I\n"); printf(" 0\n"); printf("<H>\n"); printf("I I \n"); getchar( 阅读全文

posted @ 2021-03-16 13:12 星星泡饭 阅读(38) 评论(0) 推荐(0) 编辑

导航