Advertisement
Leedwon

Untitled

Apr 10th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. // deklaracje metod klasy zawartej w header.h
  2.  
  3. #include "Header.h"
  4. #include <iostream>
  5.  
  6.  
  7. bankAcc(const std::string & name, const std::string & numb, double var1)
  8. {
  9.     Lname = name;
  10.     Accnum = numb;
  11.     if (var1 < 0)
  12.     {
  13.         std::cout << "saldo ujemne, ustawiam saldo na 0";
  14.         Accbalance = 0;
  15.     }
  16.     else
  17.         Accbalance = var1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement