摘要: // 将图书信息写入文本文件data1.txt#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#define N 7#define M 80typedef struct { char name[M]; // 书名 char author[M]; // 阅读全文
posted @ 2022-12-24 22:19 理塘ikun 阅读(43) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <string.h>#define N 3typedef struct student { int id; char name[20]; char subject[20]; doubl 阅读全文
posted @ 2022-12-24 22:17 理塘ikun 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include<stdlib.h>#define N 4int main() { int a[N] = {1, 9, 8, 4};char b[N] = {'1', '9', '8', '4'};int i;printf("sizeof(int) = %d\n" 阅读全文
posted @ 2022-11-29 21:33 理塘ikun 阅读(3) 评论(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 print 阅读全文
posted @ 2022-11-08 22:25 理塘ikun 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<time.h>#define N 5int main(){int number;int i;srand(time(0));for (i = 0; i < N; ++i){number = rand() % 500 阅读全文
posted @ 2022-10-25 21:58 理塘ikun 阅读(17) 评论(0) 推荐(0) 编辑
摘要: include <stdio.h>int main(){printf(" o \n");printf("<H>\n");printf("I I\n"); return 0;} #include<stdio.h>#include<math.h>int main(){ double x, ans; wh 阅读全文
posted @ 2022-10-18 21:05 理塘ikun 阅读(23) 评论(0) 推荐(0) 编辑