Saturday, January 21, 2012

Template in C++

First of all we should know why there is a need of a template in C++ programming language?
Let's take we want to write a function which returns the minimium of two numbers say GetMin then writing this function say for int data type but same function could be used for floating number as well then you can use operator overloading

No comments:

Post a Comment