-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (25 loc) · 692 Bytes
/
main.cpp
File metadata and controls
30 lines (25 loc) · 692 Bytes
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>
#include "include/find_combinations.h"
// include dictionary.cpp
#include "src/dictionary.cpp"
int main(int, char **)
{
std::cout << "Enter your name:" << std::endl;
std::string input_str;
std::cin >> input_str;
std::vector<std::string> combinations = find_combinations(input_str, dictionary);
std::cout << "Input: " << input_str << std::endl;
std::size_t i = 1;
if (combinations.empty())
{
std::cout << "No options found." << std::endl;
}
else
{
for (auto combination : combinations)
{
std::cout << "Option " << i << ": " << combination << std::endl;
i++;
}
}
}