Your program is experiencing out-of-bounds errors. The arrays are allocated 17 elements numbered 0-16 and your program is attempting to write to elements 1-17. Element #17 does not exist.
Learn to count the C and C++ way -- with 0 as the base value. Your program is chuck full of buffer overruns and out-of-bound errors.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
When I try to debug it, it points to this line but I don't know what's wrong w/ it...
for (i = 1; i<= NUMARCS+1; i++)
{
if (point[tail[i]] == 0)
{
point[tail[i]] = i;
}
}
try this
for (i = 0; i< NUMARCS+1; i++)
rje7
Junior Poster in Training
83 posts since Mar 2008
Reputation Points: 12
Solved Threads: 9