| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1150 人关注过本帖
标题:求一个关于猫咪图案的程序
只看楼主 加入收藏
薇儿2333
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2018-4-19
结帖率:66.67%
收藏
 问题点数:0 回复次数:0 
求一个关于猫咪图案的程序
HIT cat is a virtual elfin who likes to wander on the internet.
But now he is caught by a bad guy and imprison in a binary file.

The bad guy said "I have splited the little cat into pieces, each int piece is as big as int,
Firstly,  I added  1 to each int piece.
Then, I put the total number of the int pieces in the binary file.
Finally, I put all the pieces of that cat one by one in the binary file.
hahahahaha!!!"

To save HIT cat you have to recover the data in a reversed way the bad guy did.

What you need to do:

read the file HITcat
malloc some memory for the data
recover the data
print the HIT cat on your screen
write the data in a ASCII file

│\__╭╭╭╭╭__/│
│           │    ╭────-──╮
│           │  O│  HELP       
│ ┬       ┬   │ O          ME!   
│≡              ≡│O    ╰─────  ─ ╯
│    ﹋﹋﹋     │ 
╰──┬O───O┬──╯

All the functions you need to deal with file is on your textbook.
图片附件: 游客没有浏览图片的权限,请 登录注册

搜索更多相关主题的帖子: cat the int file data 
2018-05-13 09:54
快速回复:求一个关于猫咪图案的程序
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017367 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved