Conflict with double pointer
I was working on my tile engine in SDL and came across a problem to when using my double array(int TileMap[10][10]) as a parameter to this function call: void CTile::DrawTiles( int** );
I've tried the same thing in a smaller problem to see whats up.
Code:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
void SetArray( int** );
int main( void )
{
int array[2][3]= { {14, 6, 4}, {6, 14, 7} };
SetArray( array );
cout << array[0][0] << endl;
cin.get();
return EXIT_SUCCESS;
}
void SetArray( int** array )
{
array[0][0]+= 7;
}
How can I make variable 'array' suitable for function void SetArray( int ** )?