I need help with my code please...
it compiles successfully but when I run it, it throws out a segmentation fault and can't see the mistake.
The purpose of the program is to sort a integer list using bubble sort and insertion sort
My first guess would be in your 'Sorter' constructor. There is no guarantee that an arrays contents are set to NULL when it is allocated so don't delimit the loop based on that. Also you don't allocate any memory to your 'mValues' data member before you just start writing to offsets from it.
You are already passing the size of the array in as an argument to this constructor so use the 'new' operator to allocate memory for 'mValues' based on that. Then use that same variable to limit your for loop when copying. You could alternatively just point 'mValues' at the address of the array that gets passed in but then if that array were to go out of scope then the behavior becomes undefined and you're in another kind of mess.