Ive got a problem with my code, its the 2dimentional array part. Can anyone help?PHP Code:
#include <iostream.h>
void draw_map(int x, int y)
{
int map[x][y];
int temp_x, temp_y;
for(temp_x=1;temp_x < x; x++)
{
for(temp_y = 1; temp_x < y; y++)
{
map[x][y]=0;
}
}
}
int main()
{
draw_map(50,50);
return 0;
}