Advertisement
amermo

Samostalni 5 - Z19

Apr 2nd, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. template <typename IterTip1, typename IterTip2>
  5. bool RazlicitiBlokovi(IterTip1 Pocetak, IterTip1 Kraj, IterTip2 PocetakOdredista)
  6. {
  7.     bool Isti(true);
  8.     while(Pocetak != Kraj)
  9.     {
  10.         if(*Pocetak != *PocetakOdredista)
  11.             Isti = false;
  12.         Pocetak++;
  13.         PocetakOdredista++;
  14.     }
  15.     return !Isti;
  16. }
  17.  
  18. int main()
  19. {
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement