// File: ex13-3.cpp #include using namespace std; template double half(Z n) { return static_cast(n/2.); } int main(void) { cout << half(3) << endl; cout << half(4.55) << endl; cout << half(static_cast(2)) << endl; cout << half(static_cast(19)) << endl; cout << half(1/2) << endl; cout << half('x') << endl; return 0; }