摘要: 实验任务四 #include <stdio.h> int main() { FILE *file; char filename[100]; char ch; int count = 0; file = fopen("data4.txt", "r"); if (file == NULL) { prin 阅读全文
posted @ 2023-06-08 22:55 邢馨奕 阅读(22) 评论(0) 推荐(0)
摘要: 实验任务一 #include <stdio.h> #include <string.h> #define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 cha 阅读全文
posted @ 2023-05-25 17:15 邢馨奕 阅读(26) 评论(0) 推荐(0)
摘要: #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("%d",x[i]); printf("\n"); //方 阅读全文
posted @ 2023-05-25 15:53 邢馨奕 阅读(18) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(int) = %d\n", sizeof(int) 阅读全文
posted @ 2023-04-20 14:04 邢馨奕 阅读(19) 评论(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-04-06 08:18 邢馨奕 阅读(32) 评论(0) 推荐(0)
摘要: 实验任务1 task1.c源代码 #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 阅读全文
posted @ 2023-03-23 08:47 邢馨奕 阅读(19) 评论(0) 推荐(0)
摘要: 实验任务一 源代码task1_1.c #include<stdio.h> int main() { printf(" O\n"); printf("<H>\n"); printf("I I \n"); printf(" O\n"); printf("<H>\n"); printf("I I \n") 阅读全文
posted @ 2023-03-02 20:59 邢馨奕 阅读(25) 评论(0) 推荐(0)