From 3067b73b434173c943ccfb8e705f21a55523699e Mon Sep 17 00:00:00 2001 From: Lev Date: Sat, 12 Jun 2021 10:27:35 -0500 Subject: [PATCH] Update fixed sale price display message --- CM2005 Object Oriented Programming/Topic 4/4.5.6/MerkelMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CM2005 Object Oriented Programming/Topic 4/4.5.6/MerkelMain.cpp b/CM2005 Object Oriented Programming/Topic 4/4.5.6/MerkelMain.cpp index 57f5a31..3d55d2c 100644 --- a/CM2005 Object Oriented Programming/Topic 4/4.5.6/MerkelMain.cpp +++ b/CM2005 Object Oriented Programming/Topic 4/4.5.6/MerkelMain.cpp @@ -146,7 +146,7 @@ void MerkelMain::gotoNextTimeframe() std::cout << "Sales: " << sales.size() << std::endl; for(OrderBookEntry& sale : sales) { - std::cout << "Sale price: " << sale.amount << " Sale amount: " << sale.amount << std::endl; + std::cout << "Sale price: " << sale.price << " Sale amount: " << sale.amount << std::endl; } currentTime = orderBook.getNextTime(currentTime); }