awww gottcha thank you ever so much!
Type: Posts; User: BenBusby
awww gottcha thank you ever so much!
Here's the code:
#define mask 0x04
int main(void)
{
while(P3 & mask);
//CODE
}
Yes that simple drawing of the diamond existed before this code, i was working intensively on it yesterday, and became increasingly more familiar with using the gd graphics library. Do you know why...
This is the output for my poker hand evaluator.
The shapes are made using lines, rectangles and circles.
This is how id expect it too look
12678
However when i have a Club, Spade or heart as...
12674
I have drawn a Diamond/rhombus in C, but I don't now how i can fill the shape in, any ideas?
#include <stdio.h>
#include <gd.h>
int main()
{
/* Declare and...
Anyone have any ideas?
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main (void)
{
char inputtedhand[64];
int NumC=0, NumD=0, NumS=0, NumH=0;
...
Do you want me to post the full code? I'm sure its correct until the like '180+....' line..
i wrote
printf("\n%d\n", cardvalue[1=4]);
in here, so the mistake was just a typo, nits fine in my...
if ((royalflush)>=1){
printf("The hand is a Royal Flush\n"); handscore[counter]=(180+cardvalue[4]); break;
Thats a rudimentary way of differentiating between the various...
I dont understand what you mean by indent your code properly?
Why should i get a warning there?
Okaayy, just your code doesnt do 2 hands either, if i remove line24 I can make the program function as a 1 hand evaluator..
Any ideas?
my question is: if i put ' 2s 3s 4s 5s 7d
2D 3D 4D 5D 7S' at the standard input why dont i see the text description of the cards
i thought the toupper while loop...
I want the 'counter' loop to go through twice, each time reading in 15 characters from the standard input, then going through the evalutor
#include <stdio.h>
#include <ctype.h>
...
What can i do to fix this?
Here's my code, it's for a poker hand evaluator
input: 'ad 2d 3d 4d 5d...
...4s 5s 6s 7s 8s'
I think it should go through all the 10 crads and disply the name of each card, but it seems...
I'm confused :s why does it only work once? and not for 2 15 character inputs
What i want to do is to input 30 characters at the standard input, then covert them to uppercase. This is hopefully leading somewhere, so i only want to read 15 characters at a time, then convert...
its eventually going to be for a poker hand evaluator. a,k,q,j,0,9,8,7,6,5,4,3,2 and d,s,h,c
I dont really understand, if i have this at the standard input
12345
67890
how would i get the program to read that? :s
I want to be able to read 2 line input, then safe them in separate arrays.
soo;
line1 input=array1
line2=array2
Thank youu
Where can I download a compiler that will do that for me?
I want it to read 5 cards then display a text value, any idea why is does do that?
#include <stdio.h>
int main( void )
{
char inputtedhand[25];
Aha, no it doesn't. The online compiler will pick up mistakes like missing ';' or expected terms that aren't there, can it improve much on that?
How can i solve the displaying the card...