[Solved] Running a Search Array
First you might change your if condition because you already test one time your searchArray == arr[i] if (searchArray == arr[i]) { cout << “Found value ” << searchArray << ” at index ” << i << “, taking ” << counter << ” checks !”; if (counter == 1) { cout << “We ran … Read more