I think so, the Fisher-Yates cancels out possibilities instead of error checking.
Type: Posts; User: PunchOut
I think so, the Fisher-Yates cancels out possibilities instead of error checking.
I am having a very hard time understanding how to implement the Fisher-Yates algorithm. Is there by chance a simpler way to make this work?
This program originally dealt 52 cards and we were...
Hello everyone, I am having trouble with a program and the loop in the main function highlighted in red. I need the program to deal 10 times and determine hands etc. Not sure what I am missing...
my first was a basic calculator
lol, thank you, duh! :)
I am in the early stages of creating a game of fifteen but i am having a problem. When i run this program i can do "up" and "down" all day long, but when i try "left" or "right" or type anything...
why does lower[] print lower and upper case letters?
probably right in front of my face!
#include <stdio.h>
void alpha(char upper[26], char lower[26]);
is this what you mean?
cipher[x++] = '\0'
wow, that was quick!
thanks for the insight, much appreciated :)
Hello everyone, i am in the beginning stages of creating my own caesar cipher and i am running into trouble with my cipher array.
If you run the program below and just input something simple like...
it seemed to compile and run ok with gcc.
Are you saying it wont compile on other(most) c compilers out there?
Thanks zacs7,
a finished product! :) (i had been working on this stupid program and trying different loops etc for 2 weeks!!! before i found this site)
does the indenting look ok now?
...
i read topics like these and i am not smart enough to indent properly :)
thanks for the info.
my problem is that when i run this program and calculate the first equation it gives the answer correctly and all but it displays
Please Enter in:
+ for addition
-...
if there are any other comments about style etc please let me know.
thanks, PO
i have been working on this simple c calculator program. it runs ok for me until it hits the loop and repeats the option to:
Please Enter in:
+ for addition
- for subtraction
x for...