Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- template <typename TipElemenata, typename TipFunkcije>
- TipElemenata UzastopnaFunkcija(TipElemenata x, TipFunkcije f, int n)
- {
- if(n == 0)
- return x;
- TipElemenata Rezultat(f(x));
- for(int i(1); i < n; i++)
- Rezultat = f(Rezultat);
- return Rezultat;
- }
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement