When I run the code, I make my second entry the same as the first, assuming the binarysearch finds the same entry in the array, I should get the message box.
The Problem is that the search dosen't find the same entry even though I have entered the same number.
public
{
int[] storage = new int[20];
int counter = 0;
public Form1()
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
//number is read from "entry"
storage[counter] = entry;
counter++;