You know it’s an easy algorithm to program when you’re done writing it, before the teacher is done explaining it… #include "GSort.h" void GSort::sort( int numbers[], int size ) { int i = 0; int previous, current; while( true ) { if( i == 0 ) //No previous, step forward. { i++; continue; } [...]
READ MORE »