- Apr 10, 2001
- 48,775
- 3
- 81
So far this is all I've got
I written it MULTIPLE ways and everything points to something like this
I written it MULTIPLE ways and everything points to something like this
Originally posted by: CTho9305
Into the "rows" and "columns" integers. Make sure you pick row-major or column-major ordering to fit what you're going to do with the data, since the performance difference can be significant (if your array doesn't fit in the cache).
Originally posted by: xtknight
You need to do this in C++? It's really simple in C actually, I think.
Originally posted by: Goosemaster
cool...I believe thI tried that once but where exactly do I put the user input?
Originally posted by: BFG10K
You can use an STL vector indexed by another vector to do multi-dimensional arrays.
Best of all its size doesn't need to be initialized as it'll dynamically grow as the user enters data.
Originally posted by: clamum
Originally posted by: Goosemaster
cool...I believe thI tried that once but where exactly do I put the user input?
Try this