#include
using namespace std;
template class Distance {
public:
Distance(T distance);
void show_distance(void) {
cout << "The distance is " << distance << " miles\n";
};
private:
T distance;
};
template
Distance::Distance(T distance) { Distance::distance = distance; };
int main(void)
{
Distance short_distance(100);
Distance long_distance(2000000L);
short_distance.show_distance();
long_distance.show_distance();
}