K
kivan.maharaj
What I want to do is write a program to test lexicographical
combinations of various sets of numbers to a predefined number and
write that true values to a text file.
Example:
Number choosen between 1 and 50
Number set = 6
Value test = 150
Save to = 150.txt
So what happens is you are using 50 numbers in sets of 6 to test the
sets to equal to 150 and
save to file 150.txt
01 02 03 04 05 06 = 21 False -> Discard
01 10 20 30 40 49 = 150 True -> Store number set in text file
Any ideas would be appreciated as I am fairly new to C++ and would like
to make the program flexible to test any numbers and number sets.
Thanks
combinations of various sets of numbers to a predefined number and
write that true values to a text file.
Example:
Number choosen between 1 and 50
Number set = 6
Value test = 150
Save to = 150.txt
So what happens is you are using 50 numbers in sets of 6 to test the
sets to equal to 150 and
save to file 150.txt
01 02 03 04 05 06 = 21 False -> Discard
01 10 20 30 40 49 = 150 True -> Store number set in text file
Any ideas would be appreciated as I am fairly new to C++ and would like
to make the program flexible to test any numbers and number sets.
Thanks