-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1286.cpp
More file actions
39 lines (28 loc) · 766 Bytes
/
1286.cpp
File metadata and controls
39 lines (28 loc) · 766 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
31
32
33
34
35
36
37
#include<iostream>
#include<vector>
class CombinationIterator {
public:
CombinationIterator(std::string characters, int combinationLength) {
}
std::string next() {
std::string str = "";
return str;
}
bool hasNext() {
bool check = false;
return check;
}
};
int main() {
std::string characters = "abc";
int combinationLength = 2;
CombinationIterator* obj = new CombinationIterator(characters, combinationLength);
std::cout << obj->next() << "\n";
std::cout << obj->hasNext() << "\n";
std::cout << obj->next() << "\n";
std::cout << obj->hasNext() << "\n";
std::cout << obj->next() << "\n";
std::cout << obj->hasNext() << "\n";
delete obj;
std::cin.get();
}