We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27ee44e commit 6695d68Copy full SHA for 6695d68
main.cpp
@@ -1,7 +1,30 @@
1
+/**
2
+*
3
+* @Name : CombiningElements/main.cpp
4
+* @Version : 1.0
5
+* @Programmer : Max
6
+* @Date : 2019-06-25
7
+* @Released under : https://github.com/BaseMax/CombiningElements/blob/master/LICENSE
8
+* @Repository : https://github.com/BaseMax/CombiningElements
9
10
+**/
11
#include <iostream>
12
#include <algorithm>
13
#include <string>
14
15
int main() {
16
+ const int length=6;
17
+ string inputs[length];
18
+ for(int index=0;index < length;index++) {
19
+ // cin >> inputs[index];
20
+ getline(cin, inputs[index]);
21
+ }
22
+ sort(inputs, inputs+length);
23
+ do {
24
+ for(int index = 0; index < length; index++) {
25
+ cout << inputs[index];
26
27
+ cout << endl;
28
+ } while(next_permutation(inputs, inputs+length));
29
return 0;
30
}
0 commit comments