subject
Computers and Technology, 03.01.2020 01:31 madmar

You will create a deck of 116 cards (suggested implementation: a vector. this allows you to use push_back to add each card to the vector).a. you should create a class card that contains the following: i. two enum types representing faces and suits. ii. data members face and suit, of enum type. iii. a constructor that receives two enums representing face and suit and uses them to initialize the data members. b. a "tostring" function that returns a string in the form "face of suit" (eg. "three of spades."). jokers do not have a suit, so they would simply return "joker".2. after you create the deck, print it out.3. then you will use a method you create to shuffle the deck. here is a suggested algorithm for shuffling: iterate through the array of cards. for each card, randomly select another card in thedeck and swap the two cards.4. once you have shuffled, print the deck again.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
Answers: 2
You know the right answer?
You will create a deck of 116 cards (suggested implementation: a vector. this allows you to use pus...
Questions
question
Mathematics, 30.01.2021 18:10
Questions on the website: 13722367