Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Templete Type mix
- #include <iostream>
- using namespace std;
- template <class T>
- T print (T a)
- {
- cout<<a << endl;
- }
- int main()
- {
- print("Raihan");
- print(5);
- print(3.9912);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement