Original Post
(ohmygod - it's related to programming!)
uh............. how do we use 'new' to make a multidimensional
array?
i thought it was something like this..
hope i got those source tags right...
plz help
mattd
The world is your message board - (edited to be politically correct) Edited by - mattd on 7/10/00 8:22:01 PM
class stuff
{
public:
stuff(int x, int y)
{
grid = new short int[3][x][y];
}
protected:
short int* grid;
};
int main(void)
{
stuff foo(3, 5);
return 0;
}
|
The world is your message board - (edited to be politically correct) Edited by - mattd on 7/10/00 8:22:01 PM