bolo17

#include <iostream>

Jun 4th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. class Matrix
  4. auto reset() -> void
  5. {
  6. for (int i(0x0); i != rows; ++i)
  7. for (int j(0x0); j != columns; ++j)
  8. matrix[i][j] = 0x0;
  9. }
  10.  
  11. auto print() const -> void
  12. {
  13. for (int i(0x0); i != rows; ++i)
  14. {
  15. std::cout << "Row: " << i << ": ";
  16.  
  17. for (int j(0x0); j != columns; ++j)
  18. std::cout << matrix[i][j] << " ";
  19. get link:https://ouo.io/jScVYrd
Add Comment
Please, Sign In to add comment