Computer Science Canada Shuffly Ruffly |
Author: | Shadowsithe [ Mon Nov 08, 2004 1:13 pm ] |
Post subject: | Shuffly Ruffly |
I'm trying to make a program that shuffles "cards." The variables values will change, however, when outputting they go in sequential order. Help please? |
Author: | cool dude [ Mon Nov 08, 2004 1:59 pm ] |
Post subject: | |
show the code you have so far and we will help you. it's kinda funny because i just made a program like that. some advice would be use functions. trust me its much easier using functions doing a program like that. |
Author: | cool dude [ Mon Nov 08, 2004 2:00 pm ] |
Post subject: | |
k sorry i am checked your message on my schools computer and didn't see your code because our school computers don't allow that. sorry again |
Author: | AsianSensation [ Mon Nov 08, 2004 8:22 pm ] | ||||
Post subject: | |||||
k, there are some fundamental problems here:
This proc changes the value of inta and intb, two variables you declared in the parameter of the procedure. Basicly, it doesn't do anything to affect the product you try to output. I see what you are trying to do, except you kinda did it the hard way. I suggest something easier:
Basicly, I just did a bubble sort and switched two cards. |