SteveCRM
Aug 4th, 2000, 09:30 PM
In my class we didn't get to cover this and it was the next thing we were going to do! So how do I declare and use arrays?
parksie
Aug 5th, 2000, 03:35 AM
Two ways:
int MyArray[10];
// I can go from MyArray[0] to MyArray[9]
// An access violation exception will occur if you try to
// use MyArray[10];
or
int* MyArray;
int MyNum = 50;
MyArray = new int[MyNum + 3];
The second way, you can use variable names and anything else to make the array size.