assign1/sorting.cpp
/*
**	Author: Evan Slominski
**	Function Purpose: Check for error exceptions and call the p_initArray p_putDataInArray functions
**		
**	Function Output: none
**	Side Effects: none
*/
Evan Slominski
Function Purpose: Check for error exceptions and call the p_initArray p_putDataInArray functions

Function Output: none
Side Effects: none
Evan Slominski Function Purpose : Check for error exceptions and call the p_initArray p_putDataInArray functions Function Output : none Side Effects : none
void C_Numbers::readFile(char fileName[100]){
    if( NULL != this->p_numArray ) {
        throw MyException("WARNING: Array already initialized, skipping");
    } else if (0 > p_arraySize) {
        throw MyException("WARNING: Value is negative, cannot create array");
    } else {
        this->p_initArray();
    }
    if ( NULL == this->p_numArray ) {
        throw MyException("WARNING: The array has not been initialized");
    } else {
        this->p_putDataInArray();
    }
}
void C_Numbers :: readFile ( char fileName [ 100 ] ) { if ( NULL != this -> p_numArray ) { throw MyException ( " " ) ; } else if ( 0 > p_arraySize ) { throw MyException ( " " ) ; } else { this -> p_initArray ( ) ; } if ( NULL == this -> p_numArray ) { throw MyException ( " " ) ; } else { this -> p_putDataInArray ( ) ; } }
Author: Evan Slominski
Function Purpose: Check for error exceptions and call the p_initArray p_putDataInArray functions
Author : Evan Slominski Function Purpose : Check for error exceptions and call the p_initArray p_putDataInArray functions