摘要: 实验任务4 程序代码: #include <stdio.h> #include <stdlib.h> int main(){ FILE *fp; int i=0; char ch; fp=fopen("D:\\private\\learning\\data\\data4.txt","r"); if( 阅读全文
posted @ 2023-06-10 17:20 moreless-xu 阅读(9) 评论(1) 推荐(0) 编辑
摘要: 实验任务1 程序代码: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 3 typedef struct student{ int id;//学号 阅读全文
posted @ 2023-05-25 21:24 moreless-xu 阅读(3) 评论(1) 推荐(0) 编辑
摘要: 实验任务1 task1_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("%d",x[i 阅读全文
posted @ 2023-05-10 20:12 moreless-xu 阅读(10) 评论(1) 推荐(0) 编辑
摘要: 实验任务1 task1_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("si 阅读全文
posted @ 2023-04-18 11:02 moreless-xu 阅读(5) 评论(1) 推荐(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 @ 2023-03-31 12:58 moreless-xu 阅读(22) 评论(1) 推荐(0) 编辑
摘要: 实验任务1 程序代码: #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-16 21:51 moreless-xu 阅读(26) 评论(2) 推荐(0) 编辑
摘要: 实验任务1 程序代码: #include <stdio.h> #include <stdlib.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); system("pause"); return 0; } 运行结果: 结 阅读全文
posted @ 2023-03-03 10:48 moreless-xu 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #include <stdlib.h> #include <stdio.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); system("pause"); return 0; } 阅读全文
posted @ 2023-03-02 15:55 moreless-xu 阅读(13) 评论(0) 推荐(0) 编辑