Author |
Message |
Prince
|
Posted: Wed Apr 16, 2003 10:35 am Post subject: gui program... |
|
|
k im workin on a gui form of permutations & combinations and its not workin wen i put values into the text boxes (only finds p & c for 1 and 1 )
if anyone can help it would b greatly appreciated
*note: problem solved |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: Wed Apr 16, 2003 4:57 pm Post subject: (No subject) |
|
|
i whode help but my gui files are messed up form trying to modifley them . hopfully some one eltes will be able to figer it out. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Prince
|
Posted: Wed Apr 16, 2003 9:49 pm Post subject: (No subject) |
|
|
is anyone here good with gui's? |
|
|
|
|
|
Leafs Fan
|
Posted: Thu Apr 17, 2003 2:47 pm Post subject: (No subject) |
|
|
what school do u go to prince? |
|
|
|
|
|
Prince
|
Posted: Thu Apr 17, 2003 4:43 pm Post subject: (No subject) |
|
|
i go to milliken... y? |
|
|
|
|
|
MysticAngel
|
Posted: Sat Apr 19, 2003 9:09 pm Post subject: (No subject) |
|
|
Hey prince did u figure it out what the problem was |
|
|
|
|
|
Blade
|
Posted: Sat Apr 19, 2003 9:11 pm Post subject: (No subject) |
|
|
Prince wrote: is anyone here good with gui's?
delta is awesome with gui's |
|
|
|
|
|
Prince
|
Posted: Sun Apr 20, 2003 12:54 pm Post subject: (No subject) |
|
|
no mystic i still havnt figured it out yet... delta if ur readin this can u plz help me out |
|
|
|
|
|
Sponsor Sponsor
|
|
|
MysticAngel
|
Posted: Tue Apr 22, 2003 9:59 am Post subject: (No subject) |
|
|
prince.. i dont know but u know the first part of the code where u declare the variables.. n and r and then u gave it a value. maybe there's the problem. cuz u said that both the values are 1. shodnt you put it to the values that are inputed ??? |
|
|
|
|
|
Prince
|
Posted: Tue Apr 22, 2003 10:05 am Post subject: (No subject) |
|
|
im tryin but that doesnt seem to b workin either cus now there ar other variables (that need n and r) that dont hav any values |
|
|
|
|
|
MysticAngel
|
Posted: Tue Apr 22, 2003 10:11 am Post subject: (No subject) |
|
|
It seems that u have given all the variables the same value (in ur case 1)
so if u change the value of n and r where u declared it to say 2, then the answer too is 2. If see if can assign the value for n and r the value that is inputed through the text box. |
|
|
|
|
|
Prince
|
Posted: Tue Apr 22, 2003 10:18 am Post subject: (No subject) |
|
|
how tho... im tryin to figure it out but i cant |
|
|
|
|
|
MysticAngel
|
Posted: Tue Apr 22, 2003 10:19 am Post subject: (No subject) |
|
|
U dont have that thing called as GetPositiveInteger do u? u think that would help? |
|
|
|
|
|
Prince
|
Posted: Tue Apr 22, 2003 10:33 am Post subject: (No subject) |
|
|
not in a gui... i dont think so anyway... mayb i should try that |
|
|
|
|
|
jamez
|
Posted: Tue Apr 22, 2003 1:09 pm Post subject: (No subject) |
|
|
hmm?
you can use the function abs which returns positive al lthe time
x:=abs(-100)
x is 100
x:=abs(100)
x is 100 |
|
|
|
|
|
|