Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Share Your Creations
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.


Combinations function


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-04-2008, 11:40 AM
Senior Member
 
Join Date: May 2007
Posts: 152
Awards Showcase
Competition Winner 
Total Awards: 1
Default Combinations function

As a reply to Stellaferox request I wrote a short program which includes a sub to calculate all the combinations of "a out of b" and provide them in an array and in text file.
It use a recursive sub to overcome the problem of unknown number of for-next loops.
It may help you, all card players...
Attached Files
File Type: zip combinations.zip (849 Bytes, 27 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exp() function Bruno Questions & Help Needed 5 06-05-2008 07:03 PM
Combinations application Stellaferox Share Your Creations 0 02-21-2008 08:24 PM
Combinations Sub: choose(n,k) Stellaferox Code Samples & Tips 2 02-21-2008 06:51 PM
code to write out combinations e.g. (10 choose 3) Stellaferox Questions & Help Needed 4 02-04-2008 05:51 AM
List of possible combinations for x numbers. EdQas Questions & Help Needed 3 10-07-2007 09:18 AM


All times are GMT. The time now is 12:34 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0