摘要: #include <stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 } Book; int main() { Book x[N] = { {"《雕塑家》", "斯 阅读全文
posted @ 2022-12-26 19:34 殷正阳 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; double perf; double mid; double f 阅读全文
posted @ 2022-12-26 19:08 殷正阳 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define N 4 int main() { int a[N] = { 1, 9, 8, 4 }; char b[N] = { '1', '9', '8', '4' }; int i; printf("sizeof(int) = %d\n", sizeof( 阅读全文
posted @ 2022-11-23 17:30 殷正阳 阅读(2) 评论(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 @ 2022-11-05 11:42 殷正阳 阅读(34) 评论(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 = r 阅读全文
posted @ 2022-10-25 10:24 殷正阳 阅读(27) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { printf(" O O\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } #include<stdio.h> #include<math.h> int main() 阅读全文
posted @ 2022-10-16 10:42 殷正阳 阅读(38) 评论(0) 推荐(0) 编辑