Array Search C++ Code

Array Search C++ Code

This code will perform a search inside an array which will be sorted with either a bubble sort or selection sort.

Array Search program screenshot. The program asks the user to enter a number to search and a sort method to use. It then prints the array position if the number is found.

The array has already been populated with the following numbers: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1. The code will ask the user to enter a number to search and provide a sort method to use. Internally, the code will sort the numbers with the supplied sort method and will then search the array. It will then print the array position of the number if it is found.

Downloads

Videos