2023年6月15日

实验7

摘要: 实验任务4 #include <stdio.h> #include <stdlib.h> int main() { FILE *fp1,*fp2,*fp3; char ch; fp1=fopen("data4.txt","r"); fp2=fp3=fp1; while((ch=getc(fp2))! 阅读全文

posted @ 2023-06-15 13:07 随客111 阅读(8) 评论(0) 推荐(0) 编辑

2023年6月1日

实验六+实验五

摘要: 实验六 任务1 // P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include<stdlib.h> #include <string.h> #define N 2 阅读全文

posted @ 2023-06-01 14:56 随客111 阅读(11) 评论(0) 推荐(0) 编辑

实验五

摘要: 实验任务1 源代码: 法一: #include <stdio.h> #include <stdlib.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for (i = 0; i < N; ++i) printf( 阅读全文

posted @ 2023-06-01 14:53 随客111 阅读(4) 评论(0) 推荐(0) 编辑

实验六

摘要: 任务1 // P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include<stdlib.h> #include <string.h> #define N 2 // 阅读全文

posted @ 2023-06-01 14:50 随客111 阅读(5) 评论(0) 推荐(0) 编辑

2023年4月20日

实验4

摘要: 实验任务1 源代码1-1: #include<stdio.h> #include<stdlib.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf(" 阅读全文

posted @ 2023-04-20 15:23 随客111 阅读(3) 评论(0) 推荐(0) 编辑

2023年4月6日

实验三

摘要: 实验任务1 源代码: #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 @ 2023-04-06 12:25 随客111 阅读(14) 评论(0) 推荐(0) 编辑

2023年3月22日

实验2

摘要: 实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main () { int number; int i; srand(time(0 阅读全文

posted @ 2023-03-22 23:04 随客111 阅读(7) 评论(0) 推荐(0) 编辑

2023年3月9日

实验1

摘要: 实验任务1 编程源代码: //打印俩垂直字符小人 #include <stdio.h> #include <stdlib.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); printf(" 0 \n"); print 阅读全文

posted @ 2023-03-09 15:03 随客111 阅读(16) 评论(0) 推荐(0) 编辑

导航