summaryrefslogtreecommitdiff
path: root/main.cc
blob: de75719879cd4d69abf2566aab01c90669503afb (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
#include <iostream>

bool configValue(const std::string& iKey)
{
    bool result;
    std::cin >> result;
    return result;
}

bool coucouEveryone()
{
    bool result;
    std::cin >> result;
    return result;
}

int main()
{
    std::string aValue{"aparam"};
    if (configValue(aValue))
    {
        coucouEveryone();
    }
    if (!configValue(""))
    {
        std::cout << "Mouhahahaha I am a villain!\n";
    }
    int abc;
    return 0;
}