Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. int *array = new int[n];
  2.     for (int i = 0; i < n; i++)
  3.     {
  4.         for (int j = 0; j < n; j++)
  5.         {
  6.             array[j] = a[i][j];
  7.         }
  8.         index = Search_Binary(array, 0, n, el);
  9.         if (index >= 0)
  10.             cout << "Указанное число находится в " << i+1<< " строке ячейке с индексом: " << index+1 << "\n";
  11.         else
  12.             cout << "В строке "<< i+1<<" нет такого числа!\n";
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement