Шаблон:Db-double
template < int *ptr > class Ptr ( ... }; template < class Type, int size > class Fixed_Array { ... }; template < int hi, int wid > class Screen { ... }; (a) const int size = 1024;
Ptr< &size>bp1;
(b) int arr[10];
Ptr< arr > bp2; (c) Ptr < 0 > bp3;
(d) const int hi = 40;
const int wi = 80; Screen< hi, wi+32 > sObj;
(e) const int size_val = 1024;
Fixed_Array< string, size_val > fa1;
(f) unsigned int fasize = 255;
Fixed_Array< int, fasize > fa2;
(g) const double db = 3.1415;
Fixed_Array< double, db > fa3;