Advertisement
Maxxxfer908

Untitled

Apr 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <fstream>
  4. #include <cstring>
  5.  
  6. using namespace std;
  7.  
  8.  
  9.  
  10. int _tmain(int argc, _TCHAR* argv[])
  11. {
  12. ifstream fin("C:\\Users\\User\\Documents\\Visual Studio 2013\\1233.txt");
  13. const int u = 3;
  14. int i, j;
  15. i = 0;
  16. j = 0;
  17. char matr[u][u];
  18. for (int i = 0; i < u; i++){
  19. for (int j = 0; j < u; j++){
  20. fin >> matr[i][j];
  21. cout << matr[i][j];
  22. }
  23. cout << endl;
  24.  
  25. }
  26. fin.close();
  27. system("pause");
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement