Guest User

Untitled

a guest
Jan 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. operator:
  2. std::ostream& operator<<(std::ostream& output, Macierz2x2 input)
  3. {
  4.     output << input.wsp(1,1) << " " << input.wsp(2,1) << "\n" << input.wsp(1,2) << " " << input.wsp(2,2);
  5.     return output;
  6. }
  7.  
  8. deklaracja (do operator.hpp):
  9. std::ostream& operator<<(std::ostream&, Macierz2x2);
  10.  
  11. definicja (do operator.cpp):
  12. std::ostream& operator<<(std::ostream& output, Macierz2x2 input)
  13. {
  14.     output << input.wsp(1,1) << " " << input.wsp(2,1) << "\n" << input.wsp(1,2) << " " << input.wsp(2,2);
  15.     return output;
  16. }
Add Comment
Please, Sign In to add comment