Advertisement
Hesiro

Untitled

Feb 25th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. void TGlass::PourLiquid(double cc)
  2. {
  3.     _amount =_amount + cc;
  4. }
  5.  
  6. void TGlass::Drink(double cc)
  7. {
  8.     _amount = _amount - cc;
  9. }
  10.  
  11. double TGlass::GetRemaining()
  12. {
  13.     return(_amount);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement