摘要: 四、实验结论: 1. task1_1.c 1 #include <stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 int *p; 9 10 // 方式1:通过数组名和下标遍历输出数组元素 阅读全文
posted @ 2022-06-08 20:21 Nixmout 阅读(18) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论 1. task1_1.c 1 #include <stdio.h> 2 3 #define N 5 4 #define M 80 5 6 typedef struct 7 { 8 char name[M]; 9 char author[M]; 10 }BOOK; 11 12 int m 阅读全文
posted @ 2022-06-06 15:26 Nixmout 阅读(19) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论: 1、task1_1.c 1 #include<stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int a[N]={2,0,2,2}; 7 char b[N]={'2','0','2','2'}; 8 int i; 9 10 printf("si 阅读全文
posted @ 2022-05-09 19:07 Nixmout 阅读(10) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论: 1.实验任务1: task1.c 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 7 void printText(int Line, 阅读全文
posted @ 2022-04-25 11:05 Nixmout 阅读(21) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论: task1: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 7 int main() /*随机选取 5个2018届~2021届的学生学号*/ 8 { 9 int grade, 阅读全文
posted @ 2022-04-14 01:04 Nixmout 阅读(63) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论 1. 实验任务1 //task1_1.c 1 #include<stdio.h> 2 int main() 3 { 4 int i; 5 6 for(i=1;i<=2;i++) 7 { 8 printf(" O \n"); 9 printf("<H>\n"); 10 printf("I 阅读全文
posted @ 2022-03-24 21:50 Nixmout 阅读(53) 评论(3) 推荐(0) 编辑
摘要: #include<stdio.h> int main(){ char ch; ch=getchar(); putchar(ch); printf("%c",ch); return 0;} 阅读全文
posted @ 2022-03-21 21:53 Nixmout 阅读(23) 评论(0) 推荐(0) 编辑