rm ingored

This commit is contained in:
2024-11-22 23:26:07 +03:00
parent 5450d1756f
commit 63e4c1382f
65 changed files with 0 additions and 7599 deletions

View File

@@ -1,20 +0,0 @@
#include "check.h"
#include "../goods/goods.h"
Check::Check() {}
void Check::add_goods(Goods goods) { this->goods.push_back(goods); }
double Check::calculae_total_price() {
double total = 0.0;
for (Goods g : this->goods) {
total += g.calculate_total_price();
}
return total;
}
std::vector<Goods>& Check::get_goods() {
return goods;
}

View File

@@ -1,18 +0,0 @@
#ifndef CHECK_H
#define CHECK_H
#include "../goods/goods.h"
#include <vector>
class Check {
std::vector<Goods> goods;
public:
Check();
void add_goods(Goods);
double calculae_total_price();
std::vector<Goods> &get_goods();
};
#endif // CHECK_H