Search:

Type: Posts; User: TomButcher

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,288

    ah ok thanks alot just wondered if there was a...

    ah ok thanks alot just wondered if there was a more efficient way of doing that
  2. Replies
    5
    Views
    1,288

    deck = {Cards(2,"2h"),Cards(3,"3h")}; This...

    deck = {Cards(2,"2h"),Cards(3,"3h")};


    This line is throwing up the errors.



    class Cards
    {
    private: char name_of_card [5];
  3. Replies
    5
    Views
    1,288

    array of class object

    i'm creating an array of a class object. The class in question has default values and takes two arguments, an in and a char array.


    class Deck
    {
    private:
    Cards deck[2];
    public:
    Deck();...
  4. Replies
    3
    Views
    851

    thanks guys spot on i hadn't defined the...

    thanks guys spot on i hadn't defined the destructor, I'm new to c++ programming having emigrated from java :D :o
  5. Replies
    3
    Views
    851

    linker error message

    when compiling my code (it's nothing complicated its just console visua c++)

    anyway it comes up with this


    Linking...
    poker.obj : error LNK2019: unresolved external symbol "public: __thiscall...
  6. Replies
    3
    Views
    2,011

    how does char * differ ? Does it mean a...

    how does char * differ ?

    Does it mean a pointer to the array i'm slightly confused
  7. Replies
    3
    Views
    2,011

    question about arrays

    class Cards
    {
    private:
    char name_of_card [5];
    int value;
    public:
    Cards(int v, char c []);
    ~Cards();
    char [] get_name();
    int get_value();
Results 1 to 7 of 7