I can't. I have to inherit IDeck.
Also, Deck is not a template, not sure if that matters. I should still be able to use multiple. Anyone?????
Type: Posts; User: sugie
I can't. I have to inherit IDeck.
Also, Deck is not a template, not sure if that matters. I should still be able to use multiple. Anyone?????
Ok, I can actually put them both in the same file but then I get another error.
I have a class deck which is derived from ideck which now I need to also use all of the list functions.
I changed...
I want to do this b/c I want to use all the functions in List in another program but I don't want to bring both files over.
I have 2 .h files which contain 2 classes, List and a ListNode. I want to change both classes into 1 class, List. Is this possible?
#ifndef LIST_H
#define LIST_H
#include <iostream>...
Do I put the stack in the deal function? Instead of cout do I use a push onto a stack?
Here is my card shuffling and dealing but I want to shuffle and push onto a stack and then deal off of the stack. Any ideas?
DeckOfCards.h
class DeckOfCards
{
public:
DeckOfCards(); ...
Does anyone know any code to union 2 sets?
I have a prototype in my header file of:
IntegerSet& unionSet( IntegerSet& otherSet );
I want to union array c and b and am calling the function...
Can someone explain to me how to cout an empty set from this code? I know that the second idx should reference the array but don't know how to do it.
main.cpp
int main()
{
IntegerSet a;
...
I figured that part out but I have another question.
In this printSet function how do I change the second idx so that it's the value of the array?
void IntegerSet::printSet()
{
for( int...
I am working on a project and am trying to compile as I go and I'm getting a linking problem. The main most of header file functions were given to us.
Header
#ifndef INTEGERSET_H
#define...
I'm trying to write a Blackjack program and I am stuck. HELP!
The rules for game that differ from Blackjack are that aces are always 1. You can't really get a Blackjack but it's for a class and...
I think i'm calling it wrong too. it's at the bottom.
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
using namespace std;
can someone show me some code for a findmax function?
I am going to be importing a file that could have up to 10 rows in it. we'll say rate is one of the columns in that file and i want to find...
at the bottom where i keep messing up i had to insert the "//" b/c i could not get past them.
#include <iostream>
#include <iomanip>
using namespace std;
#include <fstream>
void...
trying to keep running.
yeah, that's on a different computer. can't post it right now.
I can tell you this....I import a file that has the employee information and do calculations to it to get gross, net and all taxes. ...
I am working on a project that calculates gross pay and net pay from an imported file that contains 4 employees and their rate per hour and their number of hours worked. I can import the file and do...