CashInstance
This commit is contained in:
parent
2dbd827031
commit
c442bd08c6
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include "cashInstance.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
void CashInstance::print() {
|
||||||
|
std::cout << " Value: " << value << "\tamount: " << availableAmount
|
||||||
|
<< std::endl;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
class CashInstance {
|
||||||
|
public:
|
||||||
|
float value;
|
||||||
|
int availableAmount;
|
||||||
|
void print();
|
||||||
|
CashInstance(float value, int availableAmount)
|
||||||
|
: value(value), availableAmount(availableAmount){};
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue