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

2024年12月30日

实验⑦
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int line_count = 1, char_count = 0; FILE * fp = fopen("data4.txt", "r"); if (fp == NUL 阅读全文
posted @ 2024-12-30 09:40 电脑玩家刻俄伯 阅读(5) 评论(0) 推荐(0)
 
 

2024年12月22日

实验六
摘要: 实验六: 任务4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售 阅读全文
posted @ 2024-12-22 21:02 电脑玩家刻俄伯 阅读(7) 评论(0) 推荐(0)
 
 

2024年12月8日

实验五
摘要: 任务1: #include<stdio.h> #define N 5 void input(int x[],int n); void output(int x[],int n); void find_min_max(int x[],int n,int *pmin,int *pmax); int ma 阅读全文
posted @ 2024-12-08 21:50 电脑玩家刻俄伯 阅读(8) 评论(0) 推荐(0)
 
 

2024年11月10日

实验4
摘要: 任务1: #include<stdio.h> #define N 4 #define M 2 void test1() { int x[N]={1,9,8,4} ; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i < N; ++ 阅读全文
posted @ 2024-11-10 22:56 电脑玩家刻俄伯 阅读(6) 评论(0) 推荐(0)
 
 

2024年10月28日

实验三
摘要: 任务1: 源代码: #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_ 阅读全文
posted @ 2024-10-28 20:15 电脑玩家刻俄伯 阅读(5) 评论(0) 推荐(0)
 
 

2024年10月9日

实验2
摘要: 练习1: 源代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 397 7 #define N2 476 8 #define N3 21 9 10 int main( 阅读全文
posted @ 2024-10-09 21:11 电脑玩家刻俄伯 阅读(14) 评论(0) 推荐(0)
 
 

2024年9月29日

实验1
摘要: 实验1 任务1:打印小人 源代码: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { int i; for (int i = 0; i < 2; i++) { printf(" O \n"); printf("<H>\n") 阅读全文
posted @ 2024-09-29 20:46 电脑玩家刻俄伯 阅读(17) 评论(0) 推荐(0)
 
 

公告


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