摘要: task1.1 void test1() { int a[N] = { 1, 9, 8, 4 }; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a)); // 输出int类型数组a中每个元素的地址、值 for (i = 0; i 阅读全文
posted @ 2024-05-19 16:49 杜小刚 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // 函数声明 阅读全文
posted @ 2024-04-29 13:01 杜小刚 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include<math.h> #include<stdbool.h> #include<stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> #define 阅读全文
posted @ 2024-04-14 22:11 杜小刚 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); printf(" 0\n"); printf("<H>\n"); printf("I I\n"); 阅读全文
posted @ 2024-03-17 21:13 杜小刚 阅读(9) 评论(0) 推荐(0) 编辑