Are you saying they don't need to be private members?
Type: Posts; User: froboz
Are you saying they don't need to be private members?
If I still wanted to maintain some semblance of parameter passing, does the following code snippet represent the correct approach.
.hpp
class I2C {
protected:
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. ...
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...
Thanks Tabstop, grumpy and iMalc. I copied this file over from another which did use <map> and simply forgot to delete the reference.
Yes, I changed my copy constructor accordingly:
//Copy Constructor
vectorOfInt::vectorOfInt(const vectorOfInt& vec){
length = vec.length;
//panew = new int[length];
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...