Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- template <typename T>
- T func(T a, T b)
- {
- return a + b;
- }
- int main()
- {
- setlocale(LC_ALL, "Rus");
- srand(time(NULL));
- int a = 5, b = 10;
- std::cout << func(a, b) << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement