Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "konto.h"
- #include <iostream>
- #include <iomanip>
- using namespace std;
- bool Konto::init (const string & i_name, unsigned long i_nr, double i_stand)
- {
- if ( i_name.size()<1)
- return false;
- name = i_name;
- nr = i_nr;
- stand = i_stand;
- return true;
- }
- void Konto::display()
- {
- cout << fixed << setprecision(2)
- << "---------------------------------------------------------\n"
- << "Kontoinhaber: " << name << '\n'
- << "Kontonummer: " << nr << '\n'
- << "Kontostand: " << stand << '\n'
- << "---------------------------------------------------------\n"
- << endl;
- }
Add Comment
Please, Sign In to add comment