摘要: 实验任务1 task1_1.c #include <stdio.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]); printf("\n"); f 阅读全文
posted @ 2023-05-30 21:58 BUYA 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> #define N 10 //运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student{ int id; //学号 char name[20]; //姓名 char subject[20 阅读全文
posted @ 2023-05-30 16:05 BUYA 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task1_1.c #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(int) = %d 阅读全文
posted @ 2023-05-30 16:05 BUYA 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task1.c #include <stdio.h> #include <string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; double perf; double 阅读全文
posted @ 2023-05-29 09:45 BUYA 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task1.c #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printf_text(int line,int col,char text[]); v 阅读全文
posted @ 2023-04-06 15:22 BUYA 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task1.c #include<stdio.h> #include<stdlib.h> #include<time.h> #define R2 701 #define N 5 #define R1 586 int main() { int number; int i; srand( t 阅读全文
posted @ 2023-03-21 15:33 BUYA 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 #include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } 实验任务1_1.c #include<stdio.h> int main() { printf(" 阅读全文
posted @ 2023-03-09 15:37 BUYA 阅读(23) 评论(0) 推荐(0) 编辑