#include<iostream> using namespace std; template<class T> void outputArray(const T *P_array, const int count){ for (int i = 0; i < count; i++) cout << P_array[i] << " "; cout << endl; } int main(){ const int aCount = 8, bCount = 8, cCount = 20; int aArray[aCount] = { 1, 2, 3, 4, 5, 6, 7, 8 }; double bArray[bCount] = { 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8 }; char cArray[cCount] = "welcome to see you"; cout << "aArray contains:" << endl; outputArray(aArray, aCount); cout << "bArray contains:" << endl; outputArray(bArray, bCount); cout << "cArray contains:" << endl; outputArray(cArray, cCount); }