/********************************************************************* C201 Fall 2006 Dana Vrajitoru main.cpp Contains the main function. Tests the selection sort. **********************************************************************/ #include "array_oper.h" #include #include #include using namespace std; int main() { const int size = 10, limit = 50; int arr[size], target, i; srand(time(NULL)); Random_array(arr, size, limit); Selection_sort(arr, size); Output(arr, size); cout << "Enter a value to search for in the array" << endl; cin >> target; i = Binary_search(arr, size, target); if (i > 0) cout << "The value was found at position " << i << endl; else cout << "The value is not in the array" << endl; // To uncomment once you add these functions: // Reverse(arr, size); // Output(arr, size) // Selection_sort_max(arr, size); // You'll need to add a conditional to the next call and some output // statements: // Is_sorted(arr, size); return 0; }