摘要: `#include <stdio.h> include<stdlib.h> define N 80 define M 7 typedef struct { char name[N]; // 书名 char author[N]; // 作者 } Book; // 函数声明 void func1(); 阅读全文
posted @ 2024-06-23 21:24 x湘 阅读(34) 评论(0) 推荐(0)
摘要: `#include <stdio.h> include<stdlib.h> include <string.h> define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; 阅读全文
posted @ 2024-06-08 20:28 x湘 阅读(16) 评论(0) 推荐(0)
摘要: `#include <stdio.h> include<stdlib.h> define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, 阅读全文
posted @ 2024-05-26 20:51 x湘 阅读(23) 评论(0) 推荐(0)
摘要: `#include <stdio.h> include<stdlib.h> define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a)) 阅读全文
posted @ 2024-05-19 17:05 x湘 阅读(17) 评论(0) 推荐(0)
摘要: `#include <stdio.h> include <stdlib.h> include <time.h> include <windows.h> define N 80 void print_text(int line, int col, char text[]); // 函数声明 void 阅读全文
posted @ 2024-04-28 21:40 x湘 阅读(6) 评论(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 阅读全文
posted @ 2024-04-14 12:30 x湘 阅读(21) 评论(0) 推荐(0)
摘要: include<stdio.h> include<stdlib.h> int main() { printf(" O 0\n"); printf(" \n"); printf("I I I I\n"); system("pause"); return 0; } include<stdio.h> in 阅读全文
posted @ 2024-03-17 15:06 x湘 阅读(20) 评论(0) 推荐(0)
摘要: include<stdio.h> include<stdlib.h> int main() { printf(" O 0\n"); printf(" \n"); printf("I I I I\n"); system("pause"); return 0; } 阅读全文
posted @ 2024-03-17 13:25 x湘 阅读(16) 评论(0) 推荐(0)