File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ using namespace std;
14
14
15
15
int main () {
16
16
const int length=6 ;
17
+ string values[length];
17
18
cout << " Enter values:\n " ;
18
- string texts[length];
19
19
for (int index = 0 ; index < length;index ++) {
20
- cin >> texts [index ]; // Get a word
21
- // getline(cin, texts [i]); // Get a line
20
+ cin >> values [index ]; // Get a word
21
+ // getline(cin, values [i]); // Get a line
22
22
}
23
23
for (int index1 = 0 ;index1 < length; index1++) {
24
24
for (int index2 = 0 ;index2 < length; index2++) {
25
25
for (int index3 = 0 ;index3 < length; index3++) {
26
26
for (int index4 = 0 ;index4 < length;index4++) {
27
27
for (int index5 = 0 ; index5 < length;index5++) {
28
28
for (int index6 = 0 ; index6 < length;index6++) {
29
- cout << texts [index1] << texts [index2] << texts [index3] << texts [index4] << texts [index5] << texts [index6] << endl;
29
+ cout << values [index1] << values [index2] << values [index3] << values [index4] << values [index5] << values [index6] << endl;
30
30
}
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments