Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class intVector
  2. {
  3. int X, Y;
  4.  
  5. intVector& operator+=(const intVector& A) { … }
  6. intVector& operator*=(int A) { … }
  7.  
  8. float Norm(); // Not int
  9. };
  10.  
  11. class floatVector
  12. {
  13. float X, Y;
  14.  
  15. floatVector& operator+=(const floatVector& A) { … }
  16. floatVector& operator*=(float A) { … }
  17.  
  18. float Norm(); // Would be double for a doubleVector
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement