blob: 39cff8e6b89dbc7076a618ddd34d3520da8d8798 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <cstddef>
#include <book_store/library.hh>
#include <book_store/store.hh>
auto main() -> int {
using namespace book_store;
using namespace book_store::library;
constexpr std::size_t LIBRARY_BOOK_SIZE = 1000;
constexpr std::size_t LIBRARY_CUSTOMER_SIZE = 500;
constexpr std::size_t YEARLY_MEMBERSHIP_FEE_USD = 10;
constexpr std::size_t MEMBER_DISCOUNT_PERCENT = 5;
book_store::store store(LIBRARY_BOOK_SIZE, LIBRARY_CUSTOMER_SIZE,
YEARLY_MEMBERSHIP_FEE_USD, MEMBER_DISCOUNT_PERCENT);
populate_books(store, LIBRARY_BOOK_SIZE);
populate_consumers(store);
manage(store);
return 0;
}
|