Guest User

Untitled

a guest
Apr 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include "konto.h"
  2. #include <iostream>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. bool Konto::init (const string & i_name, unsigned long i_nr, double i_stand)
  7.  
  8. {
  9.     if ( i_name.size()<1)
  10.         return false;
  11.     name = i_name;
  12.     nr = i_nr;
  13.     stand = i_stand;
  14.     return true;
  15.     }
  16.  
  17. void Konto::display()
  18. {
  19.     cout << fixed << setprecision(2)
  20.         << "---------------------------------------------------------\n"
  21.         << "Kontoinhaber: " << name << '\n'
  22.         << "Kontonummer:  " << nr << '\n'
  23.         << "Kontostand:   " << stand << '\n'
  24.         << "---------------------------------------------------------\n"
  25.         << endl;
  26. }
Add Comment
Please, Sign In to add comment