another quick question on the 2D array problem. how would you dereference something in that?
Type: Posts; User: Neo
another quick question on the 2D array problem. how would you dereference something in that?
sorry I didn't catch that in the FAQ. it has been months since I have read that thing. THANKS.
ok, so my programming partner and I just found out that you can't dynamically allocate a 2d array in C++. like this
char* charPtr;
charPtr = new char[someVariable][someVariable2];
just try specifying in the constructor
run a loop in the constructor that does it for ya
i didn't know that... thanks!:)
you can pause it using a simple getch(); it just sits there and waits for a character from the user. the getch() function is in the <conio.h> library. this is all assuming you are using VC++
dude
Considering his post he is probably new to C++ and I didn't learn about Vectors until my third CS class so Vectors might not be an option for him right now:) Vectors are a lot nicer though.