Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <string>
- #include <functional>
- int main(int argc, char* args[])
- {
- int a = atoi(args[1]);
- std::function<std::string()> bla = a < 10
- ? std::function<std::string()>([]()->std::string{return "lolz";})
- : std::function<std::string()>([]()->std::string{return "fniezz";});
- std::cout << bla() << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement