摘要: task4 #include<stdlib.h> #include<stdio.h> int main(){ char ch; int count=0; FILE *fp; fp = fopen("data4.txt", "r"); if(fp==NULL) { printf("fail to op 阅读全文
posted @ 2022-12-27 10:20 沈铖杰 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 实验5 task3 #include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 阅读全文
posted @ 2022-12-26 10:24 沈铖杰 阅读(11) 评论(0) 推荐(0) 编辑
摘要: task1 #include <stdio.h> #include<stdlib.h> #define N 4 int main() { int a[N] = {1, 9, 8, 4}; char b[N] = {'1', '9', '8', '4'}; int i; printf("sizeof( 阅读全文
posted @ 2022-11-26 10:46 沈铖杰 阅读(9) 评论(0) 推荐(0) 编辑
摘要: task1 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_text(int line,int col,char text[]); void print 阅读全文
posted @ 2022-11-06 10:36 沈铖杰 阅读(36) 评论(0) 推荐(0) 编辑
摘要: task1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int number; int i; srand (time(0)); for(i =0;i<N;++i){ number = r 阅读全文
posted @ 2022-10-19 16:53 沈铖杰 阅读(33) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); printf(" o \n"); printf("<H>\n"); p 阅读全文
posted @ 2022-10-13 12:49 沈铖杰 阅读(22) 评论(0) 推荐(0) 编辑