标题:求一个关于猫咪图案的程序
取消只看楼主
薇儿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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-486882-1-1.html




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

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