Search:

Type: Posts; User: MF1991

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    776

    I have more to the code but i was just explaining...

    I have more to the code but i was just explaining what part i was stuck on :). Many thanks for your reply! Could you please give me an example and i can proceed from there! :) im newish to C :)
  2. Replies
    3
    Views
    776

    Trouble finding the loop :P

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

    typedef struct {
    char* shortValue; /* within structure, contains card value */
    char shortSuit[5]; /* within structure,...
  3. Replies
    1
    Views
    676

    Scanning Player2

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

    typedef struct {
    char* shortValue; /* within structure, contains card value */
    char shortSuit[5]; /* within structure,...
  4. Replies
    27
    Views
    2,860

    case '2': sprintf(cards[i].value,...

    case '2':
    sprintf(cards[i].value, "Two");
    cards[i].valueAmount = 2;
    break;


    case '3':
    sprintf(cards[i].value,...
  5. Replies
    27
    Views
    2,860

    can you give me an example on how i can implement...

    can you give me an example on how i can implement and place it within my code plz? :)
  6. Replies
    27
    Views
    2,860

    #include #include #include...

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

    typedef struct {
    char* shortValue;
    char shortSuit[5];
    char value[20];
    char suit[20];
    char valueAmount[13];
  7. Replies
    27
    Views
    2,860

    #include #include #include...

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

    typedef struct {
    char* shortValue;
    char shortSuit[1];
    char value[20];
    char suit[20];
    } CARD;
  8. Replies
    27
    Views
    2,860

    Like this? [code] case '2': ...

    Like this?

    [code]

    case '2':
    sprintf(cards[i].value, "Two");
    cards[i].valueAmount[0] = 2;
    break;
  9. Replies
    27
    Views
    2,860

    Something like this? int valueAmount[13];...

    Something like this?



    int valueAmount[13];

    valueAmount[0] = "2";
    valueAmount[1] = "3";
    valueAmount[2] = "4";
    valueAmount[3] = "5";
  10. Replies
    27
    Views
    2,860

    well i tried doing that but i kept getting error...

    well i tried doing that but i kept getting error messages. do u have teamviewer 8 so i can possibly show you what i am doing so you can provide me with an answer and see for yourself? :)
  11. Replies
    27
    Views
    2,860

    i have a 5 card input like 5H 6D 8C 7S 4H and...

    i have a 5 card input like 5H 6D 8C 7S 4H and when i put them in, i want it to sort them in a list like this:

    4H
    5H
    6D
    7S
    8C

    but when i display them, it will print the names and of and then...
  12. Replies
    27
    Views
    2,860

    #include #include ...

    #include <stdio.h>

    #include <stdlib.h>

    #include <string.h>



    typedef struct {
  13. Replies
    27
    Views
    2,860

    Link is in the above reply (: i really need help...

    Link is in the above reply (: i really need help on this.
  14. Replies
    27
    Views
    2,860

    So sorry people, im new to this forum! this is...

    So sorry people, im new to this forum!

    this is my code, i hope you will be able to help!

    #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct - Pastebin.com
  15. Replies
    2
    Views
    804

    URGENTLY need help!

    i am new to C and new to the forum, i really need help in order to get my data sorted for this poker game. i need it to go from highest value to lowest in a 5 card hand.

    please help me and then i...
  16. Replies
    2
    Views
    992

    any idea at all anyone? please! (:

    any idea at all anyone? please! (:
  17. Replies
    2
    Views
    992

    Sorting C Language

    would anyone be able to help me sort this data so when i input the values, they will be in order. Highest to lowest.

    such as:

    Ace
    King
    Nine
    Seven
    Five
  18. Replies
    27
    Views
    2,860

    what about using bubblesort? and what about if...

    what about using bubblesort? and what about if you have letters value? can i send u an example of my code in a private message?
  19. Replies
    27
    Views
    2,860

    Sorting this in C language.

    hi, im new to C and wondering how i would be able to sort certain data so it goes from highest to lowest. such as :

    9 8 7 6 5 when inputted using a compiler.

    what would be the best way and how...
Results 1 to 19 of 21