摘要: 任务一 1.1代码 1 #include <stdio.h> 2 #define N 4 3 4 void test1() { 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 8 // 输出数组a占用的内存字节数 9 printf("sizeof(a) = %d\n", 阅读全文
posted @ 2023-11-13 21:56 枯基Evan 阅读(15) 评论(0) 推荐(0)
摘要: 实验三 任务一 代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 void print_text(int line,int col,char te 阅读全文
posted @ 2023-10-30 21:12 枯基Evan 阅读(21) 评论(0) 推荐(0)
摘要: 实验二 任务一代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 9 int main(){ 10 int number; 阅读全文
posted @ 2023-10-16 23:26 枯基Evan 阅读(25) 评论(0) 推荐(0)
摘要: 1.实验1 实验1_1源代码 1 #include<stdio.h> 2 int main(){ 3 printf(" O \n"); 4 printf("<H>\n"); 5 printf("I I\n"); 6 return 0; 7 } 实验1_1运行结果截图 2.实验2 实验2_1源代码 1 阅读全文
posted @ 2023-10-05 19:11 枯基Evan 阅读(16) 评论(0) 推荐(0)