Sign up to connect with ZombieKnight93 and gain access to their complete profile
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to write a function using pointers?

    Something like this? #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #define SUITS 4 #define FACES 6 #define CARDS 24 #define HAND 5 // prototypes void shuffle(unsigned int wHand[][FACES]); // …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to write a function using pointers?

    So should I make a hand function then?
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to write a function using pointers?

    This is what I did before I saw your reply, I think it's the same concept. So, since arrays typically go from 0-??????? I set the column = 0 since …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to write a function using pointers?

    On the array Row section: Hearts = 1, Diamonds = 2, Clubs = 3, Spades = 4 Column section: A = 1, Nine = 2, Ten = 3, Jack = …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to write a function using pointers?

    It gives this error */home/name/Desktop/School/Unix/Programs/hw5/draper_card_shuffle_deal_modified.c: In function ‘ace’: /home/name/Desktop/School/Unix/Programs/hw5/draper_card_shuffle_deal_modified.c:81:27: warning: comparison between pointer and integer if (wDeck[face][suit] == "Ace") { * And I understand the comparison error, but it's just …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to write a function using pointers?

    I can't edit again for some reason, but I changed my code to this, but still no luck. #include <stdio.h> #include <stdlib.h> #include <time.h> #define SUITS 4 #define FACES 6 …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Edited How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Created How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Began Watching How to write a function using pointers?

    So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to continue a switch statement until the user decides to quit?

    A friend told me to do something like add the dank = dankestmemes() part after the if statement so it updates the variable when it loops around it'll produce a …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to continue a switch statement until the user decides to quit?

    It gives me this: warning: implicit declaration of function ‘dankestmemes’ [-Wimplicit-function-declaration] int dank = dankestmemes(); // When program first executes
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to continue a switch statement until the user decides to quit?

    I did the `while(option != 'y' && option != 'Y');` thing and this is the output: You belong to the tribe of Harambe! Here you will feel the presence of …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to continue a switch statement until the user decides to quit?

    I just looked at the code and I just realized, that somehow I got to implement it inside the int dankestmemes(void) function or make a function prototype that allows you …
  • Member Avatar
    ZombieKnight93

    Edited How to continue a switch statement until the user decides to quit?

    How can I make this to continue until the user presses N? I've tried using while(1), while( option == 'y' || option == 'Y') but it kept giving an error …
  • Member Avatar
    ZombieKnight93

    Created How to continue a switch statement until the user decides to quit?

    How can I make this to continue until the user presses N? I've tried using while(1), while( option == 'y' || option == 'Y') but it kept giving an error …
  • Member Avatar
    ZombieKnight93

    Replied To a Post in How to continue a switch statement until the user decides to quit?

    How can I make this to continue until the user presses N? I've tried using while(1), while( option == 'y' || option == 'Y') but it kept giving an error …
  • Member Avatar
    ZombieKnight93

    Began Watching How to continue a switch statement until the user decides to quit?

    How can I make this to continue until the user presses N? I've tried using while(1), while( option == 'y' || option == 'Y') but it kept giving an error …
  • Member Avatar
    ZombieKnight93

    Edited MS SQL need help finding subtotal with price and sales tax

    I'm not looking for others to do my homework, I just want help with getting an idea one what to do. My class was given an assignment and one of …
  • Member Avatar
    ZombieKnight93

    Edited MS SQL need help finding subtotal with price and sales tax

    I'm not looking for others to do my homework, I just want help with getting an idea one what to do. My class was given an assignment and one of …
  • Member Avatar
    ZombieKnight93

    Edited MS SQL need help finding subtotal with price and sales tax

    I'm not looking for others to do my homework, I just want help with getting an idea one what to do. My class was given an assignment and one of …
  • Member Avatar
    ZombieKnight93

    Created MS SQL need help finding subtotal with price and sales tax

    I'm not looking for others to do my homework, I just want help with getting an idea one what to do. My class was given an assignment and one of …
  • Member Avatar
    ZombieKnight93

    Began Watching MS SQL need help finding subtotal with price and sales tax

    I'm not looking for others to do my homework, I just want help with getting an idea one what to do. My class was given an assignment and one of …

The End.