Guest User

Untitled

a guest
Nov 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. vector<float> = {10, 3.4f, 0.22f}; //I just wrote this here may contains some sytax errors
  2. vector<char> = {'A', 'B', 'D'};
  3. vector<int> = {-100, 100, 100000};
  4.  
  5. ofstream str = ...
  6. for(int i = 0; i < arrayA.size(); ++i)
  7. {
  8. str.write((char*)&arrayA[i]);
  9. str.write((char*)&arrayB[i]);
  10. str.write((char*)&arrayC[i]);
  11. }
  12. ofstream.close();
Add Comment
Please, Sign In to add comment