Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!