assign1/sorting.cpp
/*
**	Author: Evan Slominski
**	Function Purpose: Sort the p_numArray from smallest->largest
**		
**	Function Output: none
**	Side Effects: none
*/
Evan Slominski
Function Purpose: Sort the p_numArray from smallest->largest

Function Output: none
Side Effects: none
Evan Slominski Function Purpose : Sort the p_numArray from smallest - > largest Function Output : none Side Effects : none
void C_Numbers:: p_sortArray() {
    int index = 0, index2=0;
    cout<<endl<<"Sorted Array Below:"<<endl;
    for(index=0; index < p_arraySize-1; index++) {
        for(index2=0; index2 < p_arraySize-index-1; index2++) {
            if( p_numArray[index2] > p_numArray[index2+1]) {
                int tmp=0;
                tmp = p_numArray[index2];
                p_numArray[index2] = p_numArray[index2+1];
                p_numArray[index2+1] = tmp;
            }
        }
    }
}
void C_Numbers :: p_sortArray ( ) { int index = 0 , index2 = 0 ; cout << endl << " " << endl ; for ( index = 0 ; index < p_arraySize - 1 ; index ++ ) { for ( index2 = 0 ; index2 < p_arraySize - index - 1 ; index2 ++ ) { if ( p_numArray [ index2 ] > p_numArray [ index2 + 1 ] ) { int tmp = 0 ; tmp = p_numArray [ index2 ] ; p_numArray [ index2 ] = p_numArray [ index2 + 1 ] ; p_numArray [ index2 + 1 ] = tmp ; } } } }
Author: Evan Slominski
Function Purpose: Sort the p_numArray from smallest->largest
Author : Evan Slominski Function Purpose : Sort the p_numArray from smallest - > largest
//sort the dataArray