摘要: 1.task1_1 // 将图书信息写入文本文件data1.txt #include <stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 } Book; int m 阅读全文
posted @ 2022-12-23 22:40 王译曼 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1.task1 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 ch 阅读全文
posted @ 2022-12-21 10:18 王译曼 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1.task1_1 #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", s 阅读全文
posted @ 2022-11-23 16:32 王译曼 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1.任务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_ 阅读全文
posted @ 2022-11-05 22:37 王译曼 阅读(70) 评论(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) { nu 阅读全文
posted @ 2022-10-23 16:25 王译曼 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 任务一: #include<stdio.h> #include<stdlib.h> int main(){ printf(" 0 0\n"); printf("<H> <H> \n"); printf("I I I I\n"); system("pause"); return 0; } #inclu 阅读全文
posted @ 2022-10-14 23:25 王译曼 阅读(58) 评论(0) 推荐(0) 编辑