Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cassert>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int x[6], y[6];
  9. ifstream read_file("Output.dat");
  10. assert(read_file.is_open());
  11.  
  12. int i = 0;
  13. while (!read_file.eof())
  14. {
  15.  
  16. read_file >> x[i] >> y[i];
  17. cout <<x[i]<<" "<< y[i]<<"n";
  18. i++;
  19.  
  20. }
  21. read_file.close();
  22. return 0;
  23. }
  24.  
  25. 0 0
  26. 1 0
  27. 0 1
  28. 0 0
  29. 1 0
  30. 0 1
  31.  
  32. 0 0
  33. 1 0
  34. 0 1
  35. 0 0
  36. 1 0
  37. 0 1
  38. 4195984 807
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement