摘要: Task 1.1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 4 int main() { int x[N] = { 1, 9, 8, 4 }; int i; int* p; // 方式1:通过数组名和下标遍历输出数组元素 阅读全文
posted @ 2022-06-13 22:14 Zxc123jkl 阅读(12) 评论(1) 推荐(0) 编辑
摘要: Task 1.1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #define N 5 #define M 80 typedef struct { char name[M]; char author[M] 阅读全文
posted @ 2022-06-07 00:29 Zxc123jkl 阅读(20) 评论(1) 推荐(0) 编辑
摘要: Task 1.1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 4 int main() { int a[N] = { 2, 0, 2, 2 }; char b[N] = { '2', '0', '2', '2' }; in 阅读全文
posted @ 2022-05-09 23:59 Zxc123jkl 阅读(22) 评论(1) 推荐(0) 编辑
摘要: Task 1 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printText(int line, 阅读全文
posted @ 2022-04-25 21:19 Zxc123jkl 阅读(14) 评论(1) 推荐(0) 编辑
摘要: 任务1 //这个程序随机生成2018-2021年级的学号 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int grade, number, i; srand(time(0)); f 阅读全文
posted @ 2022-04-18 22:23 Zxc123jkl 阅读(7) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int i = 1; for (i = 1; i <= 2; i++) { printf(" o \n"); printf("<H>\n"); printf("I I\n"); } return 0; } 1.2 #include <s 阅读全文
posted @ 2022-03-29 13:30 Zxc123jkl 阅读(34) 评论(3) 推荐(1) 编辑