Complete sheet with totals

This commit is contained in:
2024-03-06 01:26:51 +01:00
parent 4f5f629124
commit 4eb08cd281
4 changed files with 142 additions and 11 deletions

View File

@@ -189,6 +189,10 @@ namespace platform {
std::cout << Colors::RED() << "A and B cannot be the same!" << Colors::RESET() << std::endl;
break;
}
if (!results.at(index).isComplete()) {
std::cout << Colors::RED() << "A must be a complete result!" << Colors::RESET() << std::endl;
break;
}
index_A = index;
break;
case 'b':
@@ -197,6 +201,10 @@ namespace platform {
std::cout << Colors::RED() << "A and B cannot be the same!" << Colors::RESET() << std::endl;
break;
}
if (!results.at(index).isComplete()) {
std::cout << Colors::RED() << "B must be a complete result!" << Colors::RESET() << std::endl;
break;
}
index_B = index;
} else {
// back to show the report