Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P 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
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
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, 50 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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exp() function Bruno Questions (Windows Mobile) 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 (Windows Mobile) 4 02-04-2008 05:51 AM
List of possible combinations for x numbers. EdQas Questions (Windows Mobile) 3 10-07-2007 09:18 AM


All times are GMT. The time now is 11:46 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0