Search:

Type: Posts; User: froboz

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,969

    Are you saying they don't need to be private...

    Are you saying they don't need to be private members?
  2. Replies
    7
    Views
    1,969

    Is this the correct approach?

    If I still wanted to maintain some semblance of parameter passing, does the following code snippet represent the correct approach.

    .hpp




    class I2C {

    protected:
  3. Replies
    7
    Views
    1,969

    Class Structure

    Thanks for the advice, Elysia and tabstop. It's just a different way of thinking about things that I am not very familiar with. In terms of the word "global", I am using this term rather loosely. ...
  4. Replies
    7
    Views
    1,969

    General Class Structure

    I am trying to update my old C code to C++ , and trying to grasp C++ at the same time.

    It's not clear to me when creating a class, which variables I should declare as private (which are basically...
  5. Replies
    7
    Views
    1,138

    Thanks Tabstop, grumpy and iMalc. I copied this...

    Thanks Tabstop, grumpy and iMalc. I copied this file over from another which did use <map> and simply forgot to delete the reference.
  6. Replies
    7
    Views
    1,138

    Yes, I changed my copy constructor accordingly: ...

    Yes, I changed my copy constructor accordingly:



    //Copy Constructor
    vectorOfInt::vectorOfInt(const vectorOfInt& vec){


    length = vec.length;
    //panew = new int[length];
  7. Replies
    7
    Views
    1,138

    Newbie trying to figure out copy constructors

    I am trying to figure out copy constructors for a dynamic array and I am definitely missing something. If I go into the copy constructor routine during debug, the values appear to be correct but...
Results 1 to 7 of 7