Advertisement
avskyRB

Time-Main.cxx

Sep 2nd, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include "Tempo.h"
  2.  
  3. int main()
  4. {
  5.   Tempo t0;
  6.   std::cout << t0 << std::endl;
  7.  
  8.   Tempo t1(10, 10, 33);
  9.   std::cout << t1 << std::endl;
  10.   std::cout << t1.inSecondi() << std::endl;
  11.  
  12.   Tempo t2(47757);
  13.   std::cout << t2 << std::endl;
  14.  
  15.   Tempo t3 = t2 - t1;
  16.   std::cout << t3 << std::endl;
  17.  
  18.   Tempo t4 = t2 + t1;
  19.   std::cout << t4 << std::endl;
  20.  
  21.   return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement