Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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]); // …
Software Development
Member Avatar

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 …

Topic by ZombieKnight93

So should I make a hand function then?

Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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 …

Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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

Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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 …

Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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 …
Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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 …

c c++
Software Development
Member Avatar

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 …

Topic by ZombieKnight93

It gives me this:

warning: implicit declaration of function ‘dankestmemes’ [-Wimplicit-function-declaration]
     int dank = dankestmemes(); // When program first executes
c c++
Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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 …

c c++
Software Development
Member Avatar

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 …

Topic by ZombieKnight93

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 …

c c++
Software Development
Member Avatar

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 …

c c++
Software Development
Member Avatar

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 …

c c++
Software Development
Member Avatar

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 …

c c++
Software Development
Member Avatar

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 …

c c++
Databases
Member Avatar

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 …

Databases
Member Avatar

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 …

Databases
Member Avatar

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 …

Databases
Member Avatar

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 …

Databases
Member Avatar

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 …