forked from rhleerl/String-All-Permutation-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (20 loc) · 650 Bytes
/
main.cpp
File metadata and controls
26 lines (20 loc) · 650 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
#include <iostream>
#include <string>
#include <vector>
#include <climits>
#include "comboGenerator.h"
int main(int argc, char **argv){
std::string input = "abcde";
std::string interSolution;
std::size_t removalElement = std::string::npos;
std::vector<std::string> finalSolutionList;
std::cout << "Combo Counter test:\n";
std::cout << "Number of characters in string: ";
unsigned long long int numChars;
std::cin >> numChars;
for(unsigned long long int i = 1; i <= numChars; i++){
std::cout << "nonfactorialComboCounter(" << i << ") = " << utils::nonfactorialComboCounter(i) << std::endl;
}
std::cout << std::endl;
return 0;
}