Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include<string.h>
#define _MAXSIZE_ 20
#define arrcpy( a, b ) memcpy( &a, &b, sizeof(a))//array copy
typedef int Array[_MAXSIZE_];
void foo (int array[][_MAXSIZE_]);
class Someclass
{
public:
Someclass( int size );
~Someclass();
Array* m_intArray;
};
Someclass::Someclass( int size )
{
m_intArray = new Array[size];
}
Someclass::~Someclass()
{
//if(m_intArray)
//delete [] m_intArray;
}
int main()
{
int array[10][20];
foo(array);
return 0;
}
void foo (int array[][_MAXSIZE_])
{
Someclass t(10);
arrcpy( t.m_intArray, array );
//and then
t.m_intArray[0][0] = 1;
}