Specifically, in debug mode, theData[i] = rand();
makes the program stop working and the error reads:
"Unhandled exception at 0x00ed2a8e in ... : 0xC0000005: Access violation writing location 0xcccccccc."
The purpose of this block of code is to fill an array of maxSize with random integers, so that I can test out my sorting algorithms (and their efficiency) ont hat data. maxSize is already assigned by the time this is called (it was 10 the first time I ran this, though I will begenerating arrays with up to 1,000,000 items later on).
The array "theData" is a protected member of my class. The function call in the main program is something like:
BubbleSort bs10(10);
which should call the constructor for the BubbleSort class to create an instance called bs10 that uses this (inherited from the SortData constructor above) to initialize theData: