www.delorie.com/archives/browse.cgi | search |
From: | William Heymann <heymann AT ucsu DOT Colorado DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Dynamic Allocation of Multidimensional Arrays |
Date: | Fri, 04 Apr 1997 00:09:39 -0500 |
Organization: | University of Colorado at Boulder |
Message-ID: | <33448D13.664@ucsu.Colorado.edu> |
Reply-To: | heymann AT ucsu DOT Colorado DOT edu |
NNTP-Posting-Host: | tele-anx0208.colorado.edu |
Mime-Version: | 1.0 |
Lines: | 13 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I was wondering how do I make an multi-dimensional array that itilalizes at run time without knowing any of the parameters. What I am doing is I am using an array to keep track of objects on the screen so that my colision detection works. I am also using Allegro and would like to add in the function that allows the user to select what resolution to run the screen in. Since the array is screen resolution dependent I need a way to create the array at runtime using the the values I get from Allegro. So how do I make a dynamic two dimensional array in C++? All answers would be apprecitated. Thank you for taking the time to read this message and thanks in advance for all replys.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |