home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!pacbell.com!tandem!zorch!pchi
- From: pchi@zorch.SF-Bay.ORG (Eric Chi)
- Newsgroups: comp.lang.c++
- Subject: A template question
- Keywords: template, BC++ 3.1
- Message-ID: <Bt84JC.En0@zorch.SF-Bay.ORG>
- Date: 19 Aug 92 09:18:47 GMT
- Distribution: usa
- Organization: SF-Bay Public-Access Unix
- Lines: 22
-
- Hi, I am using Borland C++ 3.1 implementing 2 classes: vector and matrix.
- I have the Vector class defined as a template:
-
- template <class Type>
- class Vector
- {
- public:
- Vector( int dim);
- ...
- };
-
- Now I tried to define the matrix by utilizing the vector:
-
- template <class Type>
- class Matrix: public Vector< Vector< Type>>
- {
- ....
- };
-
- Is this a correct way? Borland C++ seems do not understand the syntax.
-
- Eric.
-