blob: 41a320008204ab671d0e8ab1674022f5766dcef9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <iostream>
bool configValue(const std::string& iKey,
const std::string& iExpectedValue)
{
bool result;
std::cin >> result;
return result;
}
bool coucouEveryone()
{
bool result;
std::cin >> result;
return result;
}
int main()
{
std::string aValue{"stari"};
if (configValue(aValue, "on"))
{
coucouEveryone();
}
if (!configValue("burger", "on"))
{
std::cout << "Mouhahahaha I am a villain!\n";
}
int abc;
return 0;
}
|