Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Template Generic Function
- #include <iostream>
- using namespace std;
- template <class T1 , class T2>
- void print (T1 a , T2 b)
- {
- cout<<a << " " << b << endl;
- }
- int main()
- {
- print(1, "Raihan");
- print(2,5);
- print(1 , 3.9912);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement