card.h-> class card{ //friend class deck; //uhh might not need this public: //enums enum CardColor {eWhite, eRed, eGreen, ePurple}; enum CardCount {eZero, eOne, eTwo, eThree}; enum CardShape {eNone, eOvals, eSquiggles, eDiamonds}; enum CardShade {eBlank, eSolid, eOpen, eStripped}; //constructors card(); card(CardColor,CardCount,CardShape,CardShade); //~card(); //get functions CardColor getColor(){return color;} CardCount getCount(){return count;} CardShape getShape(){return shape;} CardShade getShade(){return shade;} bool getIsUsed(){return isUsed;} //set functions void setColor(CardColor newColor){color = newColor;} void setCount(CardCount newCount){count = newCount;} void setShape(CardShape newShape){shape = newShape;} void setShade(CardShade newShade){shade = newShade;} private: bool isUsed; CardColor color; CardCount count; CardShape shape; CardShade shade; }; card.cpp-> #include "card.h" card::card(){ color = eWhite; count = eZero; shape = eNone; shade = eBlank; isUsed = false; } card::card(CardColor newColor, CardCount newCount, CardShape newShape, CardShade newShade) { setColor(newColor); setCount(newCount); setShape(newShape); setShade(newShade); isUsed = false; } nullSet.cpp -> #include #include #include #include #include "card.cpp" #include #include //#include "logic.cpp" //#indlude "display.cpp" // i will move these void fillDeck(std::vector::iterator &); void makeRandom(std::vector::iterator &); int main(){ std::vector deck(81); std::vector::iterator deckIter; deckIter = deck.begin(); fillDeck(deckIter); makeRandom(deckIter); // set up table - 12 cards //display //prompt return 0; } void fillDeck(std::vector::iterator &localIter) { //card::CardColor eRed,eGreen=eGreen,ePurple=ePurple; std::vector::iterator it1; std::vector CardColors; CardColors.push_back(eRed); CardColors.push_back(eGreen); CardColors.push_back(ePurple); card::CardCount eOne,eTwo,eThree; std::vector::iterator it2; std::vector CardCounts; CardCounts.push_back(eOne); CardCounts.push_back(eTwo); CardCounts.push_back(eThree); card::CardShape eOvals,eSquiggles,eDiamonds; std::vector::iterator it3; std::vector CardShapes; CardShapes.push_back(eOvals); CardShapes.push_back(eSquiggles); CardShapes.push_back(eDiamonds); card::CardShade eSolid=eSolid,eOpen,eStripped; std::vector::iterator it4; std::vector CardShades; CardShades.push_back(eSolid); CardShades.push_back(eOpen); CardShades.push_back(eStripped); for(it1 = CardColors.begin(); it1 != CardColors.end(); it1++) { for(it2 = CardCounts.begin(); it2 != CardCounts.end(); it2++) { for(it3 = CardShapes.begin(); it3 != CardShapes.end(); it3++) { for(it4 = CardShades.begin(); it4 != CardShades.end(); it4++) { std::cout <<*it1<<" "<<*it2<<" "<<*it3<<" "<<*it4<::iterator &localIter) { } output> -1 0 -1 0 -1 0 -1 0 -1 0 -1 -1073742560 -1 0 2036621151 0 -1 0 2036621151 0 -1 0 2036621151 -1073742560 -1 0 115 0 -1 0 115 0 -1 0 115 -1073742560 -1 0 -1 0 -1 0 -1 0 -1 0 -1 -1073742560 -1 0 2036621151 0 -1 0 2036621151 0 -1 0 2036621151 -1073742560 -1 0 115 0 -1 0 115 0 -1 0 115 -1073742560 -1 0 -1 0 -1 0 -1 0 -1 0 -1 -1073742560 -1 0 2036621151 0 -1 0 2036621151 0 -1 0 2036621151 -1073742560 -1 0 115 0 -1 0 115 0 -1 0 115 -1073742560 -1073742684 0 -1 0 -1073742684 0 -1 0 -1073742684 0 -1 -1073742560 -1073742684 0 2036621151 0 -1073742684 0 2036621151 0 -1073742684 0 2036621151 -1073742560 -1073742684 0 115 0 -1073742684 0 115 0 -1073742684 0 115 -1073742560 -1073742684 0 -1 0 -1073742684 0 -1 0 -1073742684 0 -1 -1073742560 -1073742684 0 2036621151 0 -1073742684 0 2036621151 0 -1073742684 0 2036621151 -1073742560 -1073742684 0 115 0 -1073742684 0 115 0 -1073742684 0 115 -1073742560 -1073742684 0 -1 0 -1073742684 0 -1 0 -1073742684 0 -1 -1073742560 -1073742684 0 2036621151 0 -1073742684 0 2036621151 0 -1073742684 0 2036621151 -1073742560 -1073742684 0 115 0 -1073742684 0 115 0 -1073742684 0 115 -1073742560 -1073742740 0 -1 0 -1073742740 0 -1 0 -1073742740 0 -1 -1073742560 -1073742740 0 2036621151 0 -1073742740 0 2036621151 0 -1073742740 0 2036621151 -1073742560 -1073742740 0 115 0 -1073742740 0 115 0 -1073742740 0 115 -1073742560 -1073742740 0 -1 0 -1073742740 0 -1 0 -1073742740 0 -1 -1073742560 -1073742740 0 2036621151 0 -1073742740 0 2036621151 0 -1073742740 0 2036621151 -1073742560 -1073742740 0 115 0 -1073742740 0 115 0 -1073742740 0 115 -1073742560 -1073742740 0 -1 0 -1073742740 0 -1 0 -1073742740 0 -1 -1073742560 -1073742740 0 2036621151 0 -1073742740 0 2036621151 0 -1073742740 0 2036621151 -1073742560 -1073742740 0 115 0 -1073742740 0 115 0 -1073742740 0 115 -1073742560