From: tomweston_usenet AT yahoo DOT com (Tom Weston) Newsgroups: comp.os.msdos.djgpp Subject: Newbie: multidimensional arrays problem Date: 27 Aug 2003 01:34:31 -0700 Organization: http://groups.google.com/ Lines: 37 Message-ID: <87752c88.0308270034.646465b@posting.google.com> NNTP-Posting-Host: 194.193.33.9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1061973271 9247 127.0.0.1 (27 Aug 2003 08:34:31 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 27 Aug 2003 08:34:31 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm quite a novice with c++ so this is probably more a language issue than a compiler/system one but I've been writing a program and have just included some multidimensional arrays that make for a strange effect that I can't explain. As the program currently stands it looks i outline like this int main() { cout << " currently here\n"; const int xmax=1200; const int tmax=51; double price[tmax][xmax+1]; double reslevel[tmax][xmax+1]; // lots of code that doesn't involve price or reslevel return 0; } This compiles and when run doesn't print anything. If I comment out the two lines dimensioning the multi-dim arrays, it compiles and runs fine. If I change the data type of the arrays to int or float, it compiles OK and runs fine. This seems a bit bizarre to me, but as I say, I'm not experienced with C++. Any ideas? Many thanks, Tom