I have a pointer declared in my header file witch i am initializing in my constructor to point towards and array. However I cant seem to get it to point towards the array as a whole instead i only see the first value in the debugger. Is there anyway to make it show everything or do i have to acces it in the blind.
I am using Visual Studio 2013
.h
class myClass{
public:
myClass();
~MyClass();
private:
double* categories;
}
};
.cpp
double array[5] = {0,1,2,3,4};
categories = new double[5]
categories = array;
What confuses me is when i do it all in .cpp i can see everything just fine :/
double g[2] = { 9, 8 };
double(*j)[2] = &g;