Advertisement
Guest User

Untitled

a guest
Mar 26th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. #include "zad4.hpp"
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10.     srand( time( NULL ) );
  11.     double tab[3] = { 1 , 2 ,3 };
  12.  
  13.     //Matrix macierz1;
  14.     //Matrix macierz2(3,4);
  15.     //Matrix macierz3(tab);
  16.     //Matrix macierz4(macierz2);
  17.     //macierz2.wiersze();  
  18.     //macierz2.kolumny();
  19.     //macierz2.change(2,2);
  20.     //macierz2.kolumny();
  21.     //macierz2.generuj();
  22.     //macierz2.wypisz();
  23.     Matrix macierz1(4,4);
  24.     macierz1.generuj();
  25.     macierz1.wypisz();
  26.     cout<<"----------------------"<<endl;
  27.     Matrix macierz2(4,4);
  28.     macierz2.generuj();
  29.     macierz2.wypisz();
  30.    
  31.     Matrix macierz3(4,4);
  32.     macierz3.generuj();
  33.     macierz3.wypisz();
  34.     macierz3-1;
  35.     macierz3.wypisz();
  36.     cout<<"----------------------"<<endl;
  37.  
  38.  
  39.     return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement