in the default constructure allocate the array with max number of doubles.
function add_item is all f**ked up. change the name to list::add_item and delete all its contents.
if size == MAX_LIST_SIZE then reallocate the array, otherwise just insert the new number into list[size++];
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Online 21,954 posts
since Aug 2005