Sorry, I was wrong on that. Friend's only have access to protected. Private is for the class, and class only, to have access to. Protected is available for friends and derived I believe.
If the code you have posted is truly represntative of your code, then the compiler should have displayed more than floatArray::mSize not accessible and
floatArray::mData is not accessible.
You need to do the following.
1 2 3 4 5
#ifndef FLOAT ARRAY_H
#define FLOAT ARRAY_H
#include <iostream> //addd this here
class floatArray
{
While we have your attention:
In the constructor
1 2 3 4
floatArray::floatArray()
{
*mData=0.0f; //Error
}
I'm sure you plan to do this - but as you are allocating/deallocating
memory you will need an appropriate assignment operator= function and an appropriate
destructor.