O
OlgaM
Hello,
i'm trying to initialize an array.
The class List contains this in its private data members:
ListNode<DATATYPE> *dataItems;
In the constructor, i'm trying to allocate space for this array.
dataItems=new DATATYPE[maxNumber];
I'm getting the compiler error
'=' : cannot convert from 'int *' to 'class ListNode<int> *'
what am i doing wrong? Help please.
Olga Mednik
(e-mail address removed)
i'm trying to initialize an array.
The class List contains this in its private data members:
ListNode<DATATYPE> *dataItems;
In the constructor, i'm trying to allocate space for this array.
dataItems=new DATATYPE[maxNumber];
I'm getting the compiler error
'=' : cannot convert from 'int *' to 'class ListNode<int> *'
what am i doing wrong? Help please.
Olga Mednik
(e-mail address removed)