// B3b.cpp #include void throwIfBigger(const double* const &array, int n, const int MAX) { int i; for(i=0; i MAX) throw "is bigger\n"; } void main() { const double array[4] = { 1, 10, 100, 1000 }; // this should work but does not with VC++ 6.0 try { throwIfBigger(array,4,10000); } catch(char * msg) { cout << "MAX is " << 10000 << ". An array element " << msg; } try { throwIfBigger(array,4,100); } catch(char * msg) { cout << "MAX is " << 100 << ". An array element " << msg; } }