Question: Data structure in C++ help needed. How do we restore a file back to it original? for an example. After rearrange the order 12345678 to
Data structure in C++ help needed.
How do we restore a file back to it original?
for an example.
After rearrange the order 12345678 to 13572468, how do we restore the 13572468 to original 12345678?
Here's the code you need to edit:
#include#include #include
void zip_file(const std::string& filename) { } _______________________________________________________________________________
In this case, you may ONLY use three headers which are #include
I do rate the answer, so please answer it as accurate as possible, and please don't use other header.
If we treat everything in the file groups of 4 bytes, we can view the file as the following 8 blocks: 1 2 3 4 5 6 I 7 8 1 After running your function unzip_file on this file "test", the blocks should be reordered as follow:s 1 3 5 1 7 2 1 4 6 1 8] 0102030405060708091011121314151617181920212223242526272829303132 and the resulting data should be written to a file named "test-unzipped": 0102030409101112171819202526272805060708131415162122232429303132
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
