摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[2 阅读全文
posted @ 2023-05-25 23:05 wwwtttt 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.1 #include <stdio.h> #include <stdlib.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for (i = 0; i < N; ++i) printf("%d", x[i]) 阅读全文
posted @ 2023-05-05 22:51 wwwtttt 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<stdlib.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(int) = 阅读全文
posted @ 2023-04-16 17:37 wwwtttt 阅读(6) 评论(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[]); // 函数声明 vo 阅读全文
posted @ 2023-04-01 23:46 wwwtttt 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand( time(0) ); f 阅读全文
posted @ 2023-03-17 23:27 wwwtttt 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); system("pause"); return 0; } #include <stdio.h> i 阅读全文
posted @ 2023-03-02 17:21 wwwtttt 阅读(24) 评论(0) 推荐(0) 编辑