*.cpp *.h: vim settings for 2-spaces instead of tabs
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
06b00b9f97
commit
768916ff0d
3 changed files with 39 additions and 34 deletions
12
account.cpp
12
account.cpp
|
|
@ -1,24 +1,24 @@
|
|||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "account.h"
|
||||
|
||||
Account::Account ( double initial_balance ) : balance(initial_balance) {
|
||||
}
|
||||
|
||||
Account::~Account () {
|
||||
cout << "account deleted" << endl;
|
||||
std::cout << "account deleted" << std::endl;
|
||||
}
|
||||
|
||||
double Account::getBalance() const {
|
||||
return balance;
|
||||
return balance;
|
||||
}
|
||||
|
||||
void Account::deposit(double amount) {
|
||||
balance += amount;
|
||||
balance += amount;
|
||||
}
|
||||
|
||||
void Account::withdraw(double amount) {
|
||||
balance -= amount;
|
||||
balance -= amount;
|
||||
}
|
||||
|
||||
// vim:set sts=2 sw=2 et:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue