Advertisement
Guest User

main

a guest
May 22nd, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include "Operacje.h"
  4. #include <sstream>
  5.  
  6.  
  7.  
  8.  
  9. using namespace std;
  10. int main()
  11. {
  12.     /*setlocale(LC_ALL, "");*/ //polskie znaki
  13.     //chuj nie wiadomo
  14.     Macierz<Zespolona> pierwszaZes(1, 1);
  15.     Macierz<Zespolona> drugaZes(1, 1);
  16.     pierwszaZes.wypelnijZespolone();
  17.     drugaZes.wypelnijZespolone();
  18.    
  19.    
  20.  
  21.  
  22.     Macierz<Punkt> pierwsza(1,1);
  23.     Macierz<Punkt> druga(1, 1);
  24.     pierwsza.wypelnijPunktami();
  25.     druga.wypelnijPunktami();
  26.     cout << "Pierwsza" << endl;
  27.     cout << pierwsza;
  28.     cout << "Druga" << endl;
  29.     cout << druga;
  30.     cout << "dodawanie" << endl;
  31.     cout << pierwsza + druga;
  32.     cout << "odejmowanie" << endl;
  33.     cout << pierwsza - druga;
  34.     cout << "mnozenie" << endl;
  35.     cout << pierwsza * druga;
  36.     cout << "negacja" << endl;
  37.     cout << !pierwsza;
  38.     //bool wieksza = pierwsza > druga;
  39.     //cout  << boolalpha << wieksza <<endl; //true gdy prawda
  40.  
  41.     cout << "pierwsza razy 2" << endl;
  42.     cout << pierwsza * 2;
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement