Advertisement
urimbot

LAK1_main.cpp

Feb 21st, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include "VSheaderL1.h"
  3. #include <cstring>
  4. using namespace std;
  5.  
  6. int main() {
  7.     using namespace MyLinearAlgebra;
  8.     //cout << "hello";
  9.     TMatrix A(3, 3), B(3, 3), C;
  10.     for (int i = 0; i < 3; i++)
  11.         for (int j = 0; j < 3; j++) {
  12.             A(i, j) = rand() % 10;
  13.             B(i, j) = rand() % 10;
  14.         }
  15.    
  16.     for (int i = 0; i < 3; i++)
  17.         for (int j = 0; j < 3; j++) {
  18.             cout << 'matrix A';
  19.             cout << A(i, j) << ' ';
  20.             B(i, j) = rand() % 10;
  21.         }
  22.    
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement