View Single Post
Old 09-12-2007, 08:41 AM   #1 (permalink)
tikkus
Banned
 
Join Date: Nov 2003
Posts: 1,219
-3 Internets
[C++] Multi-Dimensional Array

I'm needing the syntax for creating a multi-dimensional (We'll just say 2D.) array on the fly.

The size of both dimensions will not be known until run-time.

I've tried string string *fileArray = new string[x][y]; but it won't compile like that.

string **fileArray = new string[x][y]; doesn't work either =\

I can't find any quick syntax solutions, only ways around this limitation. Does anyone out there know a fix?
tikkus is offline   Reply With Quote

 
Uberguilds Network