diff options
| author | Aotrix <[email protected]> | 2026-09-13 22:41:34 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-09-13 22:41:34 +0200 |
| commit | 947f7476325f87e9b366acf69f2a0a2671fa4811 (patch) | |
| tree | db9b8f6edadb8363bc27948ecbaa717be7d970aa /main.cc | |
| parent | f78baa3500ac224e0d39dfefd2db69caea7f2def (diff) | |
create test function
Diffstat (limited to 'main.cc')
| -rw-r--r-- | main.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ #include <iostream> -bool displayHello() +bool configValue(const std::string& iKey) { bool result; std::cin >> result; @@ -16,11 +16,11 @@ bool coucouEveryone() int main() { - if (displayHello()) + if (configValue("aparam")) { coucouEveryone(); } - if (!displayHello()) + if (!configValue("")) { std::cout << "Mouhahahaha I am a villain!\n"; } |
