摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 } Book; int mai 阅读全文
posted @ 2022-12-27 16:52 南信大最帅的男人 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 3 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; int s1; int s2 阅读全文
posted @ 2022-12-21 22:19 南信大最帅的男人 阅读(18) 评论(0) 推荐(0) 编辑
摘要: int是连续存放,四个字节char也是连续存放,一个字节一样一样#include <stdio.h> #define N 4 int main() { int a[N] = { 1, 9, 8, 4 }; char b[N] = { '1', '9', '8', '4' }; int i; prin 阅读全文
posted @ 2022-11-23 20:50 南信大最帅的男人 阅读(5) 评论(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[]);void print_spaces(i 阅读全文
posted @ 2022-11-06 20:30 南信大最帅的男人 阅读(16) 评论(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()%500 阅读全文
posted @ 2022-10-24 20:16 南信大最帅的男人 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" 0\n 0\n"); printf("<H>\n <H>\n"); printf("I I\n I I\n"); system("pause"); return 0; } #incl 阅读全文
posted @ 2022-10-13 13:06 南信大最帅的男人 阅读(9) 评论(0) 推荐(0) 编辑