Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <iostream>
  4.  
  5. class Timestamp
  6. {
  7. public:
  8.     Timestamp();
  9.     Timestamp(int seconds);
  10.  
  11.     Timestamp& Add(Timestamp& second);
  12.  
  13.     Timestamp& operator+(Timestamp& other);
  14.  
  15.     void Print() const;
  16. private:
  17.     int m_Seconds;
  18.     int m_Minutes;
  19.     int m_Hours;
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement