guys how to make templete , or any link to tutorials of templete in c++

tell me why we use templete

So that we don't have to write out the same code over and over and over to make it work with every different type. We write the template once, and then the compiler makes it work for int and double and float and char and string and your own classes and so on and so on.