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

2023年12月17日

实验7 文件应用编程
摘要: 1.实验任务1 源代码 1 // 将图书信息写入文本文件data1.txt 2 3 #include <stdio.h> 4 5 #define N 80 6 7 typedef struct { 8 char name[N]; // 书名 9 char author[N]; // 作者 10 } 阅读全文
posted @ 2023-12-17 10:22 蜗蜗电下 阅读(17) 评论(0) 推荐(0)
 
 

2023年12月13日

实验6 C语言结构体、枚举应用编程
摘要: 1.实验任务1 源代码 1 // P286例8.17 2 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 3 // 打印不及格学生信息和所有学生信息程分别调用 4 5 #include <stdio.h> 6 #include <string.h> 7 #define N 3 阅读全文
posted @ 2023-12-13 14:24 蜗蜗电下 阅读(39) 评论(0) 推荐(0)
 
 

2023年12月1日

实验5 C语言指针应用编程
摘要: 1.实验任务1 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 int *find_max(int x[], int n); 7 8 int mai 阅读全文
posted @ 2023-12-01 22:45 蜗蜗电下 阅读(56) 评论(0) 推荐(0)
 
 

2023年11月16日

实验4 C语言数组应用编程
摘要: 1实验任务1 task1_1源代码 1 #include <stdio.h> 2 #define N 4 3 void test1() { 4 int a[N] = {1, 9, 8, 4}; 5 int i; 6 // 输出数组a占用的内存字节数 7 printf("sizeof(a) = %d\ 阅读全文
posted @ 2023-11-16 20:06 蜗蜗电下 阅读(40) 评论(0) 推荐(0)
 
 

2023年11月4日

实验3 C语言函数应用编程
摘要: 1.实验任务1 task1.c源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 void print_text(int line, in 阅读全文
posted @ 2023-11-04 00:27 蜗蜗电下 阅读(46) 评论(0) 推荐(0)
 
 

2023年10月20日

实验2 C语言分支与循环基础应用编程
摘要: 1.实验任务1 task1源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 9 int main() 10 { 阅读全文
posted @ 2023-10-20 22:54 蜗蜗电下 阅读(23) 评论(0) 推荐(0)
 
 

2023年10月2日

实验1 C语言输入输出和简单程序编写
摘要: 1.实验任务1 task1_1.c 源代码 1 #include<stdio.h> 2 int main() 3 { 4 printf(" o \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 printf(" o \n"); 8 printf("<H>\n 阅读全文
posted @ 2023-10-02 11:01 蜗蜗电下 阅读(169) 评论(0) 推荐(0)
 
 

公告


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