摘要: #include <stdio.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a)); // 输出int类型数组a中每个 阅读全文
posted @ 2024-05-19 23:34 快乐小飞鱼 阅读(2) 评论(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-27 23:54 快乐小飞鱼 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 实验一 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main(){ int number; int i; srand(time(0)); for(i=0;i<N;++i){ number=rand( 阅读全文
posted @ 2024-04-14 23:21 快乐小飞鱼 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" o o\n"); printf("<H> <H>\n"); printf("I I I I\n"); system("pause"); return 0; } int main() 阅读全文
posted @ 2024-03-17 21:16 快乐小飞鱼 阅读(2) 评论(0) 推荐(0) 编辑