diff options
Diffstat (limited to 'main.cc')
| -rw-r--r-- | main.cc | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,6 +1,7 @@ #include <iostream> -bool configValue(const std::string& iKey) +bool configValue(const std::string& iKey, + const std::string& iExpectedValue) { bool result; std::cin >> result; @@ -16,12 +17,12 @@ bool coucouEveryone() int main() { - std::string aValue{"aparam"}; - if (configValue(aValue)) + std::string aValue{"stari"}; + if (configValue(aValue, "on")) { coucouEveryone(); } - if (!configValue("")) + if (!configValue("burger", "on")) { std::cout << "Mouhahahaha I am a villain!\n"; } |
