摘要: 任务4 程序源码: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main(){ char ch; FILE* fp; int i = 0; fp = fopen("data4.txt", "r"); ch = fgetc(fp); wh 阅读全文
posted @ 2023-06-13 14:46 达娃次仁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 任务4: 实验源码: #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; int s1; int s2; double sum; char level[10]; } STU; int f 阅读全文
posted @ 2023-05-31 09:48 达娃次仁 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 任务 1 1.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-05-08 11:10 达娃次仁 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 试验任务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("s 阅读全文
posted @ 2023-04-20 11:19 达娃次仁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: task 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-05 23:06 达娃次仁 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 试验任务一 程序源码 #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(ti 阅读全文
posted @ 2023-03-21 12:35 达娃次仁 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 程序源码 // 打印一个字符小人 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I 阅读全文
posted @ 2023-03-08 11:51 达娃次仁 阅读(32) 评论(2) 推荐(0) 编辑