Combinatorics Algorithm - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QbasicNews.Com (http://qbasicnews.com/newforum/forum-3.html) +--- Forum: Challenges (http://qbasicnews.com/newforum/forum-10.html) +--- Thread: Combinatorics Algorithm (/thread-2814.html) Pages:
1
2
|
Combinatorics Algorithm - Agamemnus - 01-02-2004 I see. I tested it. Good work. BTW, The reason I came up with this challenge is because I was trying to split up 1300 megabytes or so to make them fit on two CDs.. took me a bit of time to come up with the right files for each CD.. PS: "byval" in a QB sub prolly works in 7.1, but I'm not sure if it works in 4.5. I got rid of the BYVALs (because I couldn't start the program with 'em) and put in each sub call the Total variable in parentheses, which accomplishes the same thing. Combinatorics Algorithm - qbiscool - 03-09-2004 Quote:PS: Just wondering, what does byval do anyways. Combinatorics Algorithm - na_th_an - 03-09-2004 Quote:Just wondering, what does byval do anyways. Explained in QB help. Code: BYVAL Clause Combinatorics Algorithm - SCM - 03-26-2004 I realize that this is old, but I have been busy for a while. In 7.1 BYVAL can be used by BASIC as well as non-BASIC procedures. It has two advantages: 1) Since it only passes the value, The variable in the calling procedure isn't changed. 2) Variables in the calling and called procedure don't have to be the same type. This saves having to rewrite procedures for different variable types. Combinatorics Algorithm - Agamemnus - 03-28-2004 Oh great... Another reason to use qb7.1... :evil: [/i] |