you're not going to believe this but i dont have a compilier on my comp. i got it cleaned out a while back and could not find the program cd so unless im at school, i dont have a compilier :p. worst...
Type: Posts; User: sokermaniac
you're not going to believe this but i dont have a compilier on my comp. i got it cleaned out a while back and could not find the program cd so unless im at school, i dont have a compilier :p. worst...
something like this?
int ***board;
int rows;
int columns;
int thirddim;
cout << "Enter number of rows and columns and some number for the 3rd dimeninsion: ";
yeah my prof is a little unorthodox. but i had no choice but to get him this semester. i've been reading ahead and im understanding the delete concept just not how to use it haha.
and the small...
by the way, i really appreciate everybody helping me out here! i like programming but im no stud compared to you all! its a constant struggle with me :p
ok sorry about not using code tags :P not used to forums haha. 2nd my prof was going to start delete but toward the end of the semester he decided not to teach that part but im sure its not difficult...
yeah for my class you can dive right into C++ without C. I'm assuming i may have to learn C sometime eh?
ok for a 2d here is what i have:
int **board;
int rows;
int columns;
cout << "Enter number of rows and columns: ";
cin >> rows >> columns;
yeah a little bit to be honest. but that means to put a for loop on the 2nd pointer and another for loop for the 3rd pointer and another for loop for the nth pointer yes?
ok so im looking back at my notes and it seems that you would first initialize the first dimension and then make a for loop for the second then make another for loop for the 3rd?
int *list;
int arraysize;
cout << blah blah
cin>> arraysize;
list = new int[arraysize];
or something like that haha
haha boy i need to learn vectors! But again we're just using dynamic arrays. So how would i make a 3D dynamic array then?
Ah ok. Yeah I meant the type name. :P and right now my prof is making us know how to use dynamic arrays so we're not dabbing into vectors quite yet.
So my next question is to declare it. ...
hello first post here! w00t! anywho, i have a question about dynamic arrays. I've noticed that you need the star before the title and more stars if you need more than just one dimension. I'm...