摘要: tack4.c 实验代码 #include<stdio.h> #include<stdlib.h> int main(){ int i,k=0; char ch; FILE*fp; fp = fopen("data4.txt","r");; if(fp == NULL){ printf("fail 阅读全文
posted @ 2023-06-14 12:13 呀西 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char level[ 阅读全文
posted @ 2023-05-29 20:11 呀西 阅读(7) 评论(0) 推荐(0) 编辑
摘要: task1_1.c 实验代码 #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]); pr 阅读全文
posted @ 2023-05-06 23:02 呀西 阅读(19) 评论(0) 推荐(0) 编辑
摘要: task1_1.c 实验代码 #include <stdio.h> #define N 4 #include<stdlib.h> int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf 阅读全文
posted @ 2023-04-19 21:03 呀西 阅读(7) 评论(0) 推荐(0) 编辑
摘要: task1.c #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:25 呀西 阅读(13) 评论(0) 推荐(0) 编辑
摘要: task1.c 实验代码 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<stdlib.h> #define N 5 #define R1 586 #define R2 701 int main() { int numbe 阅读全文
posted @ 2023-03-22 23:05 呀西 阅读(7) 评论(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"); syste 阅读全文
posted @ 2023-03-08 23:26 呀西 阅读(20) 评论(0) 推荐(0) 编辑