By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,903 Members | 1,090 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,903 IT Pros & Developers. It's quick & easy.

Dynamic Matrix

P: n/a
If I want to create a dynamic array I may use this:

int size;
cin >> size;

int *nameArray;
nameArray = new int[size];

Is there a way to create a dynamic matrix?

Oct 31 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Gaijinco wrote:
If I want to create a dynamic array I may use this:

int size;
cin >> size;

int *nameArray;
nameArray = new int[size];

Is there a way to create a dynamic matrix?


This is in the FAQ
http://www.parashift.com/c++-faq-lit...tore-mgmt.html

You particularly want 16.16 through to 16.19

Gavin Deane

Oct 31 '05 #2

P: n/a
Gaijinco wrote:
If I want to create a dynamic array I may use this:

int size;
cin >> size;

int *nameArray;
nameArray = new int[size];

Is there a way to create a dynamic matrix?


Yes. Read the FAQ.

V
Oct 31 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.