I gang

C++ Card Game Programming

Objectives:

1. Defining classes using separate compilation

2. Use classes, vectors, and pointers.

3. Use dynamic memory

4. Model a deck of playing cards as C++ objects

1. You are to implement the following Card class.

enum Suit {HEARTS, CLUBS, SPADES, DIAMONDS};

enum Rank {ACE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING};

First place the code above in a header file Card.h and make sure it has include guards. Then define the Card member functions in the implementation file Card.cpp. I provided the definition of Card’s toString() member function below to help get you started:

2. You are to implement the following class CardDeck which models a standard deck of 52 playing cards:

Be sure to put the code above in a header file called CardDeck.h with include guards and the appropriate include statements. The definitions of the CardDeck class member functions should go in the implementation file [url removed, login to view] Make sure the implementation file includes the CardDeck header file.

The constructor should create 52 Card objects individually (no loops) using the new operator (dynamic memory) and add each Card object to the CardDeck object’s vector<Card*> member deck.

For each Card pointer in the deck, the destructor should call the delete operator to free up the dynamic memory occupied by its Card pointee and then remove the Card pointer from deck.

3. Place the following driver program in an application file [url removed, login to view]

• header files: Card.h, CardDeck.h

• implementation files: [url removed, login to view], [url removed, login to view]

• application file: [url removed, login to view]

(See complete assignment in attached PDF)

Færdigheder: C++ Programmering

Se mere: vectors programming, vectors in c programming, vectors in cpp, vector remove, vector member functions, vector in cpp, vector cpp, vector cplusplus, standard vector, standard programming, programming with game, programming with cpp, programming vector, programming pointers, programming operator, programming object, programming models, programming model, programming loops, programming in go pdf, programming in c pdf, programming functions, programming definitions, programming definition, programming define

Om arbejdsgiveren:
( 2 bedømmelser ) Los Angeles, United States

Projekt-ID: #6023087

Tildelt til:

Nikhil3398

Hi.. I am Nikhil. I have working experience of 3+ year in C++ Development. I have done work on: 1. Data Structure like: Set, Vector, Stack, Linked list, Tree(Any type), Graphes. 2. STL ( Tamplate Library ) Mere

$20 USD in 0 dage
(4 bedømmelser)
2.0

13 freelancere byder i gennemsnit $30 for dette job

szymszteinsl

Hi! I am professional C++ programmer. I can do this project with highest satisfaction. Best Regards, Szymszteinsl

$50 USD på 1 dag
(20 bedømmelser)
6.0
KingOfPhoenix

Hi, Friend. I have enough experience in C++ programming. I think I can help you perfectly & asap. Thanks.

$60 USD in 0 dage
(24 bedømmelser)
5.7
it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C++ and algorithm skills. I am focused mostly on doing computer science homework here in [url removed, login to view] and Mere

$30 USD på 1 dag
(121 bedømmelser)
5.6
Corei13

Hi, Review my profile and contact me if you are interested, thanks. [url removed, login to view]

$50 USD på 1 dag
(4 bedømmelser)
3.3
phuocdh

I am an experienced programmer with over 3 years experience in Java, C#, 5 years in C, C++. I am good at math, algorithm and always provide clean code, well documented.

$25 USD på 1 dag
(9 bedømmelser)
3.1
oobretenov

I could help you with this project. . .

$40 USD in 2 dage
(4 bedømmelser)
2.7
cipher0xpher0x

I was the top of my class in computer science and math. I'm well versed in all types of math and computer languages.

$20 USD på 1 dag
(3 bedømmelser)
2.1
PeinOS

Hello, I can do your task. I have experience in C++, OOP, OOD, STL, algorithms and data structure. This task is simple for me.

$25 USD in 2 dage
(5 bedømmelser)
1.7
ranjithshada

A proposal has not yet been provided

$15 USD på 1 dag
(0 bedømmelser)
0.0
lordstanius

I love to work on student assignments! And I am sure as hell I can deliver the right result with clear, well commented code.

$30 USD på 1 dag
(0 bedømmelser)
0.0
xiaomingming

Hello. I am C++ developer and have a experience of program develop. If you award me, I will not let you down. I will wait your reply. Thank you for your attention.

$25 USD in 0 dage
(0 bedømmelser)
0.0
idleswell

Hello, I have 25 years experience programming in C++. This is not a big project, given what they have prepared for us. A milestone payment for the full budget of your project must be deposited with this site befo Mere

$25 USD på 1 dag
(0 bedømmelser)
1.8
macoveiclaudiu

Propunerea nu a fost încă furnizată

$35 USD på 1 dag
(0 bedømmelser)
0.0