View Single Post
Old 04-08-2003, 12:54 PM   #2 (permalink)
palin
Code Monkey
 
palin's Avatar
 
Join Date: Jan 2003
Posts: 57
palin is on a distinguished road
You are looking at doing something that looks dynamic. You are most likely going to need pointers.

int *array_of_int;

array_of_int = new int[SIZE];

you should also check to make sure that the memory was allocated

if( !array_of_int )
memory was not allocated.

don't forget to delete it later

delete array_of_int;

probably would be best if you read up on pointers
palin is offline   Reply With Quote