摘要: task1_1 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 int main() 5 { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 int *p; 9 // 方式1:通过数组名和下标遍历输出数组 阅读全文
posted @ 2022-06-14 09:45 balamala 阅读(11) 评论(1) 推荐(0) 编辑
摘要: task1_1 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 5 4 #define M 80 5 6 typedef struct 7 { 8 char name[M]; 9 char auther[M]; 10 /* data */ 1 阅读全文
posted @ 2022-06-06 22:58 balamala 阅读(14) 评论(0) 推荐(0) 编辑
摘要: task1_1 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 5 int main() 6 { 7 int a[N] = {2, 0, 2, 2}; 8 char b[N] = {'2', '0', '2', '2'}; 9 10 阅读全文
posted @ 2022-05-09 22:19 balamala 阅读(9) 评论(0) 推荐(0) 编辑
摘要: task1 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, int col, char 阅读全文
posted @ 2022-04-19 17:40 balamala 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() // 问题3: 随机列出5个学号,包括4个年级(2018 19 20 21)的学生 8 { 9 in 阅读全文
posted @ 2022-04-14 22:43 balamala 阅读(31) 评论(0) 推荐(0) 编辑
摘要: task1——1 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main() 5 { 6 printf(" o \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 printf("\n"); 10 print 阅读全文
posted @ 2022-03-25 17:01 balamala 阅读(9) 评论(0) 推荐(0) 编辑