求一个关于猫咪图案的程序
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.