Search:

Type: Posts; User: sugie

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,749

    I can't. I have to inherit IDeck. Also, Deck...

    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?????
  2. Replies
    6
    Views
    1,749

    Ok, I can actually put them both in the same file...

    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...
  3. Replies
    6
    Views
    1,749

    I want to do this b/c I want to use all the...

    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.
  4. Replies
    6
    Views
    1,749

    Change 2 classes into 1, possible?

    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>...
  5. Replies
    4
    Views
    8,814

    Do I put the stack in the deal function? Instead...

    Do I put the stack in the deal function? Instead of cout do I use a push onto a stack?
  6. Replies
    4
    Views
    8,814

    Card shuffle and deal want to put on 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(); ...
  7. Thread: Union 2 arrays

    by sugie
    Replies
    2
    Views
    2,247

    Union 2 arrays

    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...
  8. Replies
    2
    Views
    1,076

    Just trying to cout an empty set

    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;
    ...
  9. Replies
    2
    Views
    2,027

    I figured that part out...

    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...
  10. Replies
    2
    Views
    2,027

    compiling problems LNK2019 error

    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...
  11. Replies
    1
    Views
    2,110

    Help with Blackjack program

    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...
  12. Replies
    3
    Views
    1,004

    ok, here's my code....

    I think i'm calling it wrong too. it's at the bottom.



    #include <iostream>
    #include <iomanip>
    #include <fstream>
    #include <string>
    using namespace std;
  13. Replies
    3
    Views
    1,004

    findmax from imported file

    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...
  14. Replies
    9
    Views
    1,395

    here is my code.

    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...
  15. Replies
    9
    Views
    1,395

    trying to keep running.

    trying to keep running.
  16. Replies
    9
    Views
    1,395

    yeah, that's on a different computer. can't post...

    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. ...
  17. Replies
    9
    Views
    1,395

    Newbie - i need a total of list of numbers (I posted code)

    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...
Results 1 to 17 of 17