Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, so I made a program with separated header and cpp files in C++, i made my deck.h, deck.cpp, card.h, card.cpp, and main.cpp. Now I

Hello, so I made a program with separated header and cpp files in C++, i made my deck.h, deck.cpp, card.h, card.cpp, and main.cpp. Now I am trying to put them all in one file but I'm not sure what order I should include them and also what I need to remove when i copy and paste each file into the single file. I

Here is the code, all I need to know is what includes to remove

#ifndef deck_h #define deck_h #include "Card.h"

class Deck { private: public: };

#endif

#ifndef card_h #define card_h #include using namespace std;

class Card { private: public: };

#endif #ifndef Deck_h #define Deck_h #include "Deck.h"

#include using namespace std;

Deck::Deck() { } } }

void Deck::refreshDeck() { }

void Deck::shuffle() { { } }

bool Deck::isEmpty() { if (cardSize == 0 || top >= 51) { return true; } else { return false; } }

void Deck::display() {

}

void Card::setCard(char r, char s) { rank = r; suit = s; }

int Card::getValue() { }

void Card::display() { if (rank == "T") { cout << "10" << suit << ", "; } else { cout << rank << suit << ", "; } }

#endif

#include #include #include #include

#include "Card.h" #include "Deck.h"

using namespace std;

bool isFibo(int n) { }

int main() { Deck deck; int input; bool loopCon = true; bool win = false; int games = 0; int piles = 0;

} } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

3. Move smoothly from point to point

Answered: 1 week ago