Guest User

Untitled

a guest
Jan 22nd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. buff2[0].PA = buff2[0].PAB = buff2[0].PB = 0;
  2. buff2[1].PA = buff2[1].PAB = buff2[1].PB = 1;
  3. buff2[2].PA = buff2[2].PAB = buff2[2].PB = 1;
  4. ofs.write(reinterpret_cast<char*>(&buff2),BUFFER_SIZE);
  5. ofs.flush();
  6. buff2[0].PA = buff2[0].PAB = buff2[0].PB = 4;
  7. buff2[1].PA = buff2[1].PAB = buff2[1].PB = 5;
  8. buff2[2].PA = buff2[2].PAB = buff2[2].PB = 6;
  9. ofs.seekp(0,ios::end);
  10. ofs.write(reinterpret_cast<char*>(&buff2),BUFFER_SIZE);
Add Comment
Please, Sign In to add comment