Search:

Type: Posts; User: BenBusby

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,121

    awww gottcha thank you ever so much!

    awww gottcha thank you ever so much!
  2. Replies
    5
    Views
    1,121

    Microcontroler masking reg66x.h

    Here's the code:



    #define mask 0x04
    int main(void)
    {
    while(P3 & mask);
    //CODE
    }
  3. Replies
    5
    Views
    2,847

    Yes that simple drawing of the diamond existed...

    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...
  4. Replies
    5
    Views
    2,847

    Gd graphics library help

    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...
  5. Replies
    3
    Views
    6,643

    12674

    12674
  6. Replies
    3
    Views
    6,643

    Drawing an image in C

    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...
  7. Replies
    7
    Views
    1,049

    Anyone have any ideas?

    Anyone have any ideas?
  8. Replies
    7
    Views
    1,049

    #include #include #include...

    #include <stdio.h>
    #include <string.h>
    #include <ctype.h>

    int main (void)
    {
    char inputtedhand[64];
    int NumC=0, NumD=0, NumS=0, NumH=0;
    ...
  9. Replies
    7
    Views
    1,049

    Do you want me to post the full code? I'm sure...

    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...
  10. Replies
    7
    Views
    1,049

    Maths question

    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...
  11. I dont understand what you mean by indent your...

    I dont understand what you mean by indent your code properly?

    Why should i get a warning there?
  12. Okaayy, just your code doesnt do 2 hands either,...

    Okaayy, just your code doesnt do 2 hands either, if i remove line24 I can make the program function as a 1 hand evaluator..
  13. Any ideas?

    Any ideas?
  14. my question is: if i put ' 2s 3s 4s 5s 7d ...

    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...
  15. help getting fixing loop problem with my code

    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>
    ...
  16. What can i do to fix this?

    What can i do to fix this?
  17. Why isn't the first line at the standard input read?

    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...
  18. I'm confused :s why does it only work once? and...

    I'm confused :s why does it only work once? and not for 2 15 character inputs
  19. reading 2 seperate inputs, possible overwriting?

    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...
  20. Replies
    7
    Views
    2,132

    its eventually going to be for a poker hand...

    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
  21. Replies
    7
    Views
    2,132

    I dont really understand, if i have this at the...

    I dont really understand, if i have this at the standard input
    12345
    67890
    how would i get the program to read that? :s
  22. Replies
    7
    Views
    2,132

    How to read a 2 line input

    I want to be able to read 2 line input, then safe them in separate arrays.

    soo;

    line1 input=array1
    line2=array2

    Thank youu
  23. Replies
    3
    Views
    2,663

    Where can I download a compiler that will do that...

    Where can I download a compiler that will do that for me?
  24. Replies
    3
    Views
    2,663

    My code doesn't work, help please

    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];
  25. Replies
    23
    Views
    5,776

    Aha, no it doesn't. The online compiler will pick...

    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...
Results 1 to 25 of 35
Page 1 of 2 1 2