Hello I want to create a function like System.println() in Java , instead of using cout in C++; I want to create like ,
void println(string text){cout<<text<<endl;}
I wonder how I can make this using generic type paremeter instead of string type , so that I can print integers,doubles as well. Thank you.