Guest User

Untitled

a guest
Dec 15th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. int main(){
  2. string a = "1010101";
  3. string b = "001010101";
  4. string c = "1110101011";
  5.  
  6. string s_array[3];
  7.  
  8. s_array[0] = a;
  9. s_array[1] = b;
  10. s_array[2] = c;
  11.  
  12. ofstream o_file("a.txt",ios::app);
  13. ofstream o_file2("b.dat", ios::app);
  14.  
  15. for (int j = 0; j < 1000; j++)
  16. for (int i = 0; i < 3; i++)
  17. o_file << s_array[i];
  18.  
  19.  
  20. for (int j = 0; j< 1000; j++)
  21. for (int i = 0; i < 3; i++)
  22. o_file2 << (byte)s_array[i];
  23.  
  24.  
  25. return 0;}
Add Comment
Please, Sign In to add comment