Académique Documents
Professionnel Documents
Culture Documents
Exercise 13:
Exercises 14:
Write a CPP program that sorts a list of Vector3D elementsby vector lengthusing bubble sort
algorithm(ascending or descending order , can choose one). Vector3D class is defined in
Exercise 13. User can input the number of elements in the list, then the program asks them to
input x,y,z of each elements until reaching the end of list. After that do sorting and print the
result.