Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <iostream>
  4.  
  5. #include <fstream>
  6.  
  7. struct complex {
  8.  
  9. float rzeczywista;
  10.  
  11. float urojona;
  12.  
  13. complex() {
  14.  
  15. rzeczywista = 0.0;
  16.  
  17. urojona = 0.0;
  18.  
  19. }
  20.  
  21. complex(const float& a, const float& b) {
  22.  
  23. rzeczywista = a;
  24.  
  25. urojona = b;
  26.  
  27. }
  28.  
  29. };
  30.  
  31. complex add(const complex& a, const complex& b);
  32.  
  33. complex substract(const complex& a, const complex& b);
  34.  
  35. complex multiply(const complex& a, const complex& b);
  36.  
  37. bool equals(const complex& a, const complex& b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement