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

Recommended Answers

All 5 Replies

thankx guys

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.