|
-
July 28th, 2005, 12:01 AM
#1
help in dynamic array declaration
template <class AType,int size> class atype
{
// AType a[size];
AType *a=new AType[size];
When i am declaring an array in the above way an error is being shown.
plz help me to solve it.
the error is as follows
cant initialize a class memeber here.
I m new in dis areana.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|