Here try this:
Code:
#include<iostream>
using namespace std;
class example
{
public:
example() = default;
~example() = default;
example(example&) = default;
int array[5][5];
};
void manipulate(example&, int, int, int);
void manipulate(example& example, int row, int column, int value)
{
example.array[row][column] = value;
}
void main()
{
example example1;
example1.array[0][0] = 5;
example example2(example1);
cout << example2.array[0][0] << endl;
manipulate(example2, 0, 0, 6);
cout << example2.array[0][0] << endl;
cin.get();
}
You must be using c++11 to use the default keyword if you're not you will have to implement the constructors manually or use the compiler generated ones(which is exactly what default does). I'm guessing you're using visual studio which version are you using?
Anyways it's pretty obvious you have little understanding of c++ syntax and object-oriented design, you definitely should read up more if this is a c++ class you are taking. If you have any questions feel free to ask.