Current Papers
CS304P - CS304P
Cs304 practical Today paper …
Cs304 practical Today paper #include <iostream> using namespace std; template <class T> T divide(T a, T b) { return a / b; } int main() { cout << divide(5, 2) << endl; cout << divide(5.0, 2.0); return 0; } Output 2 2.5~: #include <iostream> #include <string> using namespace std; class Temp { public: template <typename T> bool compare(T first, T second) { if (first == second) return true; else return false; } }; int main() { Temp t; bool r1, r2; int a = 10, b = 20; r1