I'm trying to input an example from my C++ textbook and XCode continually crashes after entering a particular character. Trying to enter '<' after the last 'j' on line 31 causes the cursor to stop flashing, the spinning beach ball comes up, and I have to force quit. I've tried entering other characters but so far I've only had problems with this one. Can anyone else verify this happening? If so, does anyone have a connection to Apple who can pass this along? This is XCode 2.2, OS 10.4.5.
#include <iostream>
#include <iomanip>
using namespace std;
void mean(const int[], int);
void median(const int[], int);
void mode(const int[], int[], int);
void bubbleSort(int[], int);
void printarray(const int[], int);
int main () {
const int responseSize = 99;
int frequency[10] = {},
response[responseSize] = {6,7,8,9,8,7,8,9,8,5,7,8,9,5,9,8,7,8,7,8,6,7,8,9,3 ,
9,8,7,8,7,7,8,9,8,9,8,9,7,8,9,6,7,8,7,8,7,9,8,9,2,
7,8,9,8,9,8,9,7,5,3,5,6,7,2,5,3,9,4,6,4,7,8,9,6,8,
7,8,9,7,8,7,4,4,2,5,3,8,7,5,6,4,5,6,1,6,5,7,8,7};
mean(response, responseSize);
median(response, responseSize);
mode(frequency, response, responseSize);
return 0;
}
void mean(const int answer[], int arraySize)
{
int j, total = 0;
for(j = 0; j