Advertisement
tei123

tcena

Apr 24th, 2018
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6. class TCena{
  7. private:
  8. float netto;
  9. float VAT;
  10. public:
  11. TCena();
  12. TCena(float R);
  13. TCena(float R, float I);
  14. friend float getBrutto(float R, float I);
  15. };
  16.  
  17. TCena::TCena(){
  18. netto=0;
  19. VAT=0.23;
  20. };
  21.  
  22. TCena::TCena(float N){
  23. netto=N;
  24. VAT=0.23;
  25. };
  26.  
  27. TCena::TCena(float N,float V){
  28. netto=N;
  29. VAT=V;
  30. };
  31.  
  32.  
  33. int main()
  34. {
  35.  
  36. TCena::TCena L1(1,2);
  37.  
  38.  
  39.  
  40.  
  41. system("PAUSE");
  42.  
  43.  
  44. return EXIT_SUCCESS;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement