Combinations in C++

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 ^_^
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,588
Members
45,100
Latest member
MelodeeFaj
Top