- Joined
- Sep 18, 2008
- Messages
- 1
- Reaction score
- 0
Hi there,
Im still very new to c++ and I am trying to create a program that tests for optimum results from a set of possible combinations. My first question is what format should I take to test a combination that can range up to 100 trillion possibilities, a loop like for or while or recursion. And my second question is what data type would be able to handle such a load because I believe int, and double are way too small to take enough info. Ive read some things about using "long" and "long long "but i dont really understand much about them.
Thanks ^_^
Im still very new to c++ and I am trying to create a program that tests for optimum results from a set of possible combinations. My first question is what format should I take to test a combination that can range up to 100 trillion possibilities, a loop like for or while or recursion. And my second question is what data type would be able to handle such a load because I believe int, and double are way too small to take enough info. Ive read some things about using "long" and "long long "but i dont really understand much about them.
Thanks ^_^