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
class Card { private: public: };
#endif #ifndef Deck_h #define Deck_h #include "Deck.h"
#include
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 "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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started