Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <fstream>
- #include <cstring>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- ifstream fin("C:\\Users\\User\\Documents\\Visual Studio 2013\\1233.txt");
- const int u = 3;
- int i, j;
- i = 0;
- j = 0;
- char matr[u][u];
- for (int i = 0; i < u; i++){
- for (int j = 0; j < u; j++){
- fin >> matr[i][j];
- cout << matr[i][j];
- }
- cout << endl;
- }
- fin.close();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement