I suggest you test your code as you write it, from what I does your bubble sort order them correctly? Getting the mean doesn't require order, do you mean median?
After putting a comment on "#include <stdafx.h>" the program compiled and ran fine here. The gear icon in the top right of code block. If you are having problems post the output of errors that you get. Also helpful to know what IDE and version you are using.
Currently it compiles fine but I'm trying to add a function which calculates the mean of the user defined/inputted array. I don't need median, the assignment requirement simply asks for the mean to be calculated last.
Before you ask the user to continue or exit call a function passing the vector to that function add up all the numbers in the vector and divide by the vector's size.