By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,795 Members | 1,832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,795 IT Pros & Developers. It's quick & easy.

Combinations

P: 4
Hello ,
I want a code for generating combinations in C++ /C for example ...
say you have numbers from 1,2,3,4,5.....15 . You want all possible combinations of 5 numbers . like (1,2,3,4,5), ( 3 ,10 ,11, 14,16) .... etc
Your help will be greatly appreciated.
Regards
Arush .
Mar 22 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
Hello ,
I want a code for generating combinations in C++ /C for example ...
say you have numbers from 1,2,3,4,5.....15 . You want all possible combinations of 5 numbers . like (1,2,3,4,5), ( 3 ,10 ,11, 14,16) .... etc
Your help will be greatly appreciated.
Regards
Arush .
the first thing is to design an algorithm before you start coding
Mar 22 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.