Timeline for How do I declare a 2d array in C++ using new?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 18, 2016 at 6:28 | comment | added | AnotherDeveloper | I seriously liked your answer too much. I myself had been an advocator of typedef. | |
Oct 17, 2015 at 17:06 | history | edited | Robert S. Barnes | CC BY-SA 3.0 |
added 1207 characters in body
|
Jun 1, 2009 at 21:26 | history | edited | Robert S. Barnes | CC BY-SA 2.5 |
change format from d to f; added 30 characters in body
|
Jun 1, 2009 at 21:22 | comment | added | Robert S. Barnes | True, although the purpose of this example is really just to show how to use typedef and new together to declare a 2D array. | |
Jun 1, 2009 at 21:18 | comment | added | Michael Kristofik | Accessing beyond the end of an array is not guaranteed to cause an error. If you're lucky, the program will just crash. You're definitely in the realm of undefined behavior. | |
Jun 1, 2009 at 20:59 | history | answered | Robert S. Barnes | CC BY-SA 2.5 |