Timeline for How do I declare a 2d array in C++ using new?
Current License: CC BY-SA 3.0
40 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 13, 2023 at 0:00 | answer | added | dr_eck | timeline score: 1 | |
Aug 29, 2022 at 18:22 | answer | added | Vivek Rai | timeline score: -1 | |
Jun 10, 2022 at 4:14 | answer | added | 1c982d | timeline score: 0 | |
Apr 1, 2022 at 21:00 | answer | added | Emad Ahmed | timeline score: 0 | |
Nov 14, 2021 at 3:52 | answer | added | Muhammed Imdaad | timeline score: -1 | |
Jun 20, 2021 at 8:33 | answer | added | kunz | timeline score: 1 | |
Jan 6, 2020 at 15:10 | answer | added | sharkzeeh | timeline score: 2 | |
Nov 21, 2019 at 13:49 | answer | added | Vahag Chakhoyan | timeline score: 1 | |
Jun 26, 2019 at 4:11 | answer | added | The_Learner | timeline score: 2 | |
Jan 5, 2019 at 20:34 | answer | added | Zargles | timeline score: 9 | |
Jun 27, 2016 at 18:29 | history | protected | Saullo G. P. Castro | ||
Jun 6, 2016 at 14:10 | answer | added | justyy | timeline score: 36 | |
May 26, 2016 at 17:42 | answer | added | emarazz | timeline score: 2 | |
Apr 1, 2016 at 12:15 | history | edited | gsamaras |
edited tags
|
|
Mar 9, 2016 at 10:13 | answer | added | akshay_rahar | timeline score: 19 | |
Oct 1, 2015 at 11:54 | answer | added | Omar Mohamed Abdel-Sattar | timeline score: 0 | |
Aug 28, 2015 at 20:44 | answer | added | Levi Morrison | timeline score: 65 | |
Mar 31, 2015 at 19:42 | comment | added | Ben Voigt | @JohannesSchaub-litb: That's not 100% correct. Certainly it does work in that case, but there's a method to make it work where all dimensions vary, see stackoverflow.com/a/29375830/103167 | |
Mar 15, 2015 at 9:09 | comment | added | Bregalad | I can't belive all the dozen of answers below are all wrong and doesn't answer the question, and yet they are all upvoted. The above comment by Johanes Shaub is the only correct answer to the question. A 2D array and an array of pointer to array are two completely separate things, that apparently everyone mixes up. | |
Mar 3, 2015 at 20:43 | answer | added | Jeff Wofford | timeline score: 253 | |
Mar 3, 2015 at 20:20 | answer | added | anyman | timeline score: -4 | |
Jan 29, 2015 at 11:26 | answer | added | mathengineer | timeline score: 0 | |
Dec 28, 2014 at 1:01 | answer | added | kamshi | timeline score: 17 | |
Sep 4, 2014 at 22:36 | answer | added | user2133061 | timeline score: 1 | |
Jan 9, 2014 at 15:18 | answer | added | FedeBsAs | timeline score: 0 | |
Sep 30, 2013 at 17:20 | answer | added | user2808359 | timeline score: -1 | |
Apr 26, 2013 at 14:57 | answer | added | Mohammad Alaggan | timeline score: 128 | |
Dec 12, 2012 at 6:14 | history | edited | Justicle | CC BY-SA 3.0 |
added 1 characters in body; edited title
|
Jan 12, 2012 at 15:32 | answer | added | etham | timeline score: 16 | |
Jun 3, 2009 at 4:14 | vote | accept | user20844 | ||
Jun 2, 2009 at 16:18 | answer | added | Mark Ransom | timeline score: 33 | |
Jun 1, 2009 at 21:13 | answer | added | Isvara | timeline score: 64 | |
Jun 1, 2009 at 20:59 | answer | added | Robert S. Barnes | timeline score: 13 | |
Jun 1, 2009 at 20:49 | comment | added | Johannes Schaub - litb | It only works if sizeX is constant: int(*ary)[sizeX] = new int[sizeY][sizeX]; Which is the right way to create a int[sizeY][sizeX] and where all the memory is contiguous. (I don't think this is worth an answer, since probably your sizeX is not constant | |
Jun 1, 2009 at 20:46 | history | edited | Michael Kristofik | CC BY-SA 2.5 |
edited title
|
Jun 1, 2009 at 20:46 | history | edited | Alex Martelli | CC BY-SA 2.5 |
fixed typo in title
|
Jun 1, 2009 at 20:46 | answer | added | Kevin Loney | timeline score: 352 | |
Jun 1, 2009 at 20:45 | answer | added | stanigator | timeline score: 8 | |
Jun 1, 2009 at 20:45 | answer | added | Mehrdad Afshari | timeline score: 883 | |
Jun 1, 2009 at 20:42 | history | asked | user20844 | CC BY-SA 2.5 |