摘要: 实验任务4: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { FILE* fp; char ch; if ((fp = fopen("D:\\我的文件\\桌面\\data4.txt", 阅读全文
posted @ 2022-12-24 15:56 熊方杰 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 实验任务3: #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char 阅读全文
posted @ 2022-12-22 11:28 熊方杰 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 实验任务1: task1-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", s 阅读全文
posted @ 2022-11-23 16:19 熊方杰 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 实验任务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 @ 2022-11-05 20:57 熊方杰 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1:生成随机数并赋给number 2: 生成学号随机数 第i行有2(n-i)+1个数 阅读全文
posted @ 2022-10-20 18:41 熊方杰 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-15 22:17 熊方杰 阅读(5) 评论(0) 推荐(0) 编辑