• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
yggybb
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2023年6月8日

实验七
摘要: #实验七 ##实验任务4 ###实验代码 ``` #include int main() { FILE *file; char filename[100]; char ch; int count = 0; file = fopen("data4.txt", "r"); if (file == NUL 阅读全文
posted @ 2023-06-08 20:39 yggybb 阅读(40) 评论(0) 推荐(0)
 
 

2023年5月31日

实验六
摘要: #实验六 ##实验任务4 ###实验代码 ``` #include #include #define N 100 typedef struct { char num[10]; int s1, s2; double sum; char level[10]; } STU; int fun(STU a[] 阅读全文
posted @ 2023-05-31 19:06 yggybb 阅读(37) 评论(0) 推荐(0)
 
 

2023年5月7日

实验五
摘要: #实验五 ##实验任务1.1 ###实验代码 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for (i = 0; i < N; 阅读全文
posted @ 2023-05-07 17:08 yggybb 阅读(9) 评论(0) 推荐(0)
 
 

2023年4月17日

实验四
摘要: #实验四 ##实验任务1.1 ###实验代码 #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(in 阅读全文
posted @ 2023-04-17 10:50 yggybb 阅读(39) 评论(0) 推荐(0)
 
 

2023年3月30日

实验三
摘要: #实验三 ##实验任务1 ###实验代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, cha 阅读全文
posted @ 2023-03-30 18:04 yggybb 阅读(33) 评论(0) 推荐(0)
 
 

2023年3月17日

实验2
摘要: ## 实验任务1 ### 实验代码 ``` #include #include #include #define N 5 #define R1 586 #define R2 701 int main(){ int number; int i; srand( time(0) );//以当前系统时间作为 阅读全文
posted @ 2023-03-17 16:48 yggybb 阅读(33) 评论(0) 推荐(0)
 
 

2023年3月4日

实验1
摘要: 实验任务1 实验代码 #include <stdio.h> int main() { printf(" 0 0\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } 实验结论 实验任务2 实验代码 // 1+2+3+...+n(设n的取 阅读全文
posted @ 2023-03-04 19:30 yggybb 阅读(29) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3