Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- int main(int argc, char* argv[])
- {
- const char* filename = "c:\_Test\hard.dat";
- std::ofstream ofs(filename, std::ios::binary | std::ios::out);
- if (ofs.bad())
- {
- std::cerr << "fail to open filen";
- return -1;
- }
- for (unsigned int i = 0; i < 0x10000; ++i)
- {
- unsigned int t = (i * 0xc369) & 0xFFFF;
- ofs.write((char*)&t, 2);
- }
- std::cout << "job donen";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement