Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int *array = new int[n];
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < n; j++)
- {
- array[j] = a[i][j];
- }
- index = Search_Binary(array, 0, n, el);
- if (index >= 0)
- cout << "Указанное число находится в " << i+1<< " строке ячейке с индексом: " << index+1 << "\n";
- else
- cout << "В строке "<< i+1<<" нет такого числа!\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement