// en C++ #include using namespace std; typedef double T1; typedef int* T2; template struct Pair { T1 first; T2 second; }; int main(void) { Pair p; int i; p.first = 3.14; p.second = new int[5]; for(i=0; i<5; i++) { p.second[i]=i; } cout << p.first << endl; for(i=0; i<5; i++) { cout << p.second[i] << endl; } delete [] p.second; return 0; }