Advertisement
sellmmaahh

tut5-zad5-pok1

Jul 22nd, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <functional>
  4. #include <cmath>
  5.  
  6. int main () {
  7.  
  8.     int niz[10]{9,6,3,1,6,3,12,64,7,32};
  9.     std::sort(&niz[0], &niz[10]);
  10.     std::cout<<*(std::find_if(&niz[0],&niz[10],std::binary_search(&niz[0],&niz[10],6)));
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement