Hi,
I have this piece of code:
expDistArrival() just gets a random number. This works. I double checked.Code:#define NUMPACKETS 100 double arrivalTimeArray[NUMPACKETS]; for(int i=0; i<=NUMPACKETS; i++) { next = expDistArrival(); arrivalTimeArray[i] = next + current; current = arrivalTimeArray[i]; } double test = arrivalTimeArray[100];
When I try to run the last line, I get the following error:
Run-Time Check Failure #3 - The variable 'arrivalTimeArray' is being used without being defined.
I am using MSVC++ .NET 2003. Any help would be highly appreciated. Thanks
Amish