Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- int i,j;
- int i_max = 3;
- int j_max = 3;
- double matrix [i_max] [j_max];
- ifstream Matrix("matrix.txt");
- for(i = 0; i < i_max; i++) {
- for(j = 0; j < j_max; j++) {
- Matrix >> matrix [i][j];
- cout << matrix [i][j] << " ";
- }
- cout << endl;
- }
- Matrix.close();
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement