Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <functional>
- std::function<int(int)> IteriranaFunkcija(std::function<int(int)> f, int n)
- {
- return[=](int x) {int rezultat(f(x)); for (int i(1); i < n; i++) rezultat = f(rezultat); return rezultat; };
- }
- int main()
- {
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement