Professional Documents
Culture Documents
h>
#include <iostream>
using namespace std;
int main()
{
int array[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
int size = 10;
int position;
int number;
int method;
getArray(number);
searchMethod(method);
if (method == 1)
bubbleSort(array, size);
else
selectionSort(array, size);
position = binarySearch(array, size, number);
showArray(number, position);
system("pause");
}