소스 ¶
#include <iostream> using std::cout; using std::cin; using std::endl; template <typename T> T multiply(T a, T b) { return a*b; } template <typename U> U subtract(U a, U b) { return a-b; } int main(void) { cout<<multiply(4,5)<<endl; cout<<multiply(subtract(5,3),subtract(3,5))<<endl; return 0; }