CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RobotJones

Search: Search took 0.18 seconds.

  1. Replies
    3
    Views
    6,125

    Re: Using an object property in an SQL query

    Forgive me, but when you say double-click the comboBox, do you mean the makeComboBox which the user chooses the make of the car, or the modelComboBox which will be popluated from the database? ...
  2. Replies
    3
    Views
    6,125

    Using an object property in an SQL query

    Can I use an object property (such as the Text value from a comboBox) in an SQL query so that the query results will be dependent upon the user's choice of said comboBox?

    I have a makeComboBox...
  3. Replies
    4
    Views
    1,086

    Re: Incrementing through an Enumeration

    How would you go about writing that? I could make a class that has an overloaded increment operator and a private data member of type int called counter which would be incremented each time a player...
  4. Replies
    4
    Views
    1,086

    Incrementing through an Enumeration

    I'm using Microdoft Visual C++ 2008 Express Edition, but I'm currently using it to create a console chess application. I have an enumerated type called Player, and a variable of type Player called...
  5. Syntax for initializing Arrays within Class Constructors Initialization List

    How can I initialize an array of type int inside a class constructor's initialization list?



    class myClass
    {
    public:
    myClass(void);
    private:
    int myArray[4];
  6. Re: I'm getting Linking errors about functions already being defined in other .obj fi

    Actually, I'm an idiot! I just answered the last question incorrectly. These are NOT class methods that I'm trying to define. They are just plain ol' functions. I was confusing this with another...
  7. Re: I'm getting Linking errors about functions already being defined in other .obj fi

    Not just any ol' function -- Private class methods. And I might have misunderstood this but I was under the impression that by putting a class method's definition inside the class declaration it...
  8. Re: I'm getting Linking errors about functions already being defined in other .obj fi

    Do you mean that if both Piece and Player need this enum:



    enum Type { PAWN, KNIGHT, BISHOP, ROOK, QUEEN, KING, NO_TYPE };


    ...that I should actually have it written twice? One in each of...
  9. I'm getting Linking errors about functions already being defined in other .obj files

    I'm building a console chess application that (so far) has 10 files:

    (3 classes)
    Move.h, Move.cpp
    Piece.h, Piece.cpp
    Player.h, Player.cpp

    (display module contains functions used for screen...
  10. Re: Can I initialize a private data member within the class constructor?

    Thank you both for your help, I believe I understand now. And in the future I'll be sure to put my code inside of code tags. Sorry about that.

    So here's my follow-up question: If I were to...
  11. Can I initialize a private data member within the class constructor?

    I have class 'ClassA' which has a constructor that takes an int, but no default constructor. Then, I have 'ClassB' which contains a private data member 'myArray[8]' of type 'ClassA'. If I...
  12. Replies
    2
    Views
    797

    Re: Enumerations inside a class

    Thank you. I'm gonna bookmark that site. It looks like it's THE source for C++ programming as far as syntax, structure, form, libraries, that sort of thing. Thanks again.
  13. Replies
    2
    Views
    797

    Enumerations inside a class

    Can I use an enumeration inside a class declaration/definition? Should it be pubic or private? I'm talking about defining an enumerated type which will be used as the type for one of the private...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured