diff options
| author | Fuwn <[email protected]> | 2023-09-26 21:56:13 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-26 21:56:13 -0700 |
| commit | b83efc67844e35d50814735d1057f520b53fe697 (patch) | |
| tree | cb21ab12e770813491d134fc6121d9c9c7b623d9 | |
| parent | feat(week_1): preview_program (diff) | |
| download | cs260-b83efc67844e35d50814735d1057f520b53fe697.tar.xz cs260-b83efc67844e35d50814735d1057f520b53fe697.zip | |
fix(review_program): yes and no for booleans
| -rw-r--r-- | week_1/review_program/textbook.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/week_1/review_program/textbook.cc b/week_1/review_program/textbook.cc index 6eeee7c..c5caffb 100644 --- a/week_1/review_program/textbook.cc +++ b/week_1/review_program/textbook.cc @@ -43,8 +43,8 @@ auto Textbook::print() const -> void { << this->_single_copy_price << "\nInventory: " << this->_number_on_hand << "\nEnrollment: " << this->_prospective_enrollment - << "\nRequired: " << this->_required << "\nUsed: " << this->_used - << std::endl; + << "\nRequired: " << (this->_required ? "Yes" : "No") + << "\nUsed: " << (this->_used ? "Yes" : "No") << std::endl; } auto Textbook::evaluate_needs() -> void { |