hello i have a small question that i need some help with, i would appreciate any help given
How could you create a string of 4 or 5 letters that have a limited number of uses.
Example:
a=2
b=3
c=4
d=3
e=2
string = acbcbcbdecdeadc
hello i have a small question that i need some help with, i would appreciate any help given
How could you create a string of 4 or 5 letters that have a limited number of uses.
Example:
a=2
b=3
c=4
d=3
e=2
string = acbcbcbdecdeadc
How do you shuffle?
and thnx for the fast reply
Move one card from one spot in the deck to another. If you've got the dexterity for it, you can even shuffle more than one card at a time!
Quzah.
Hope is the first step on the road to disappointment.
i meant how do u shuffle in c programming, not in real life.
could anyone help me, i googled it but what i found is not that good.
plzz hlp me
Do you know how to swap two variables? If not, that's what you need to learn to do. Once you know how to do that, you can apply that to your array.
Quzah.
Hope is the first step on the road to disappointment.
Another way could be to generate a random number using the time "now" as the seed.
Encode the characters say a=1 and e=5; then modulo the random number generated by 5.
Whichever (encoded) character matches the remainder, is installed into the char array defined.
Repeat all of the above steps until the char array is completely filled (excluding the null terminator).