摘要: 实验任务 4 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { FILE* fp; char ch; int count=0; fp = fopen("E:\\study\\sourse 阅读全文
posted @ 2022-12-27 18:54 王立伟。 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验任务3 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 100 typedef struct student { char num[10]; int 阅读全文
posted @ 2022-12-27 18:33 王立伟。 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 实验任务1.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", sizeof(i 阅读全文
posted @ 2022-11-23 15:36 王立伟。 阅读(6) 评论(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[]); void pri 阅读全文
posted @ 2022-11-05 12:10 王立伟。 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 #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) { numb 阅读全文
posted @ 2022-10-19 23:34 王立伟。 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 实验任务1#include<stdio.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); printf(" 0 \n"); printf("<H>\n"); printf("I I\n") 阅读全文
posted @ 2022-10-13 21:07 王立伟。 阅读(30) 评论(0) 推荐(1) 编辑