We can declare array dynamically in C++ I think. Just declare, int ArrayName [int size1] [int size2];
Get the size1 and size2 from user. Please correct me if I'm wrong. Regards, Karthikeyan M Love is magic, Rem'ber, Magic is an illusion. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Reaves Sent: Wednesday, March 28, 2007 7:20 PM To: [email protected] Subject: [c-prog] dynamic array Group, I am trying to create a dynamic 2 dimensional array. I have to read in 2 numbers from a file. These 2 numbers tell me what size array I need. How do I take these 2 numbers and create a dynamic 2 dimensional array? For example I read in 3 3 and need an array of points[3][3]. In the same file later I read in 4 4 and need the same array points[4][4]. All suggestions will be appreciated. Thanks, Michael J. Reaves, MCP Database Administrator/Financial Coordinator [Non-text portions of this message have been removed] **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** [Non-text portions of this message have been removed]
