会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
-piano-
博客园
首页
新随笔
联系
订阅
管理
2022年12月23日
实验6
摘要: 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 王译曼
阅读(89)
评论(0)
推荐(0)
2022年12月21日
实验五
摘要: 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:17 王译曼
阅读(65)
评论(0)
推荐(0)
2022年11月23日
实验4
摘要: 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 王译曼
阅读(78)
评论(0)
推荐(0)
2022年11月5日
实验三 函数应用编程
摘要: 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:36 王译曼
阅读(97)
评论(0)
推荐(0)
2022年10月23日
实验2 C语言控制语句应用编程
摘要: 任务一:#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 王译曼
阅读(70)
评论(0)
推荐(0)
2022年10月14日
实验1:C语言开发环境使用和编程初体验
摘要: 任务一: #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:24 王译曼
阅读(91)
评论(0)
推荐(0)
公告