摘要: 实验任务四 程序源码 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 5 #define M 100 int main() { char ch[M]; int n=0; FILE *fp; fp=fopen("C:/ 阅读全文
posted @ 2023-06-14 22:07 就是睡得很香 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 程序源码 #include <stdio.h>#include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 阅读全文
posted @ 2023-05-25 17:20 就是睡得很香 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 task1 程序源码 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for (i = 0; i < N; ++i) printf("%d", x[i]); print 阅读全文
posted @ 2023-05-11 12:49 就是睡得很香 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 task1.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; 阅读全文
posted @ 2023-04-20 09:02 就是睡得很香 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 程序源码: #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-03-31 16:50 就是睡得很香 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验任务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 阅读全文
posted @ 2023-03-21 16:48 就是睡得很香 阅读(19) 评论(1) 推荐(0) 编辑
摘要: 实验任务1 程序源码: #include<stdio.h> #include<stdlib.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); system("pause"); return 0; } 程序运行: 实验 阅读全文
posted @ 2023-03-02 17:15 就是睡得很香 阅读(15) 评论(0) 推荐(0) 编辑