摘要: 1 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char sub 阅读全文
posted @ 2022-12-27 22:53 15468483 阅读(8) 评论(0) 推荐(0)
摘要: 任务一 #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("sizeo 阅读全文
posted @ 2022-11-29 21:41 15468483 阅读(9) 评论(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 p 阅读全文
posted @ 2022-11-08 23:47 15468483 阅读(24) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h>#define N 5int main() { int number; int i; srand(time(0)); for (i = 0; i < N; ++i) { number = ran 阅读全文
posted @ 2022-10-25 23:19 15468483 阅读(15) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { printf(" O\n"); printf("<H>\n"); printf("I I\n"); return 0; } #include<stdio.h> int main() { printf(" O\n"); printf("<H 阅读全文
posted @ 2022-10-18 12:15 15468483 阅读(29) 评论(0) 推荐(0)