Thank you.
I got it.It just separately compiler problem.



________________________________
From: peternilsson42 <[email protected]>
To: [email protected]
Sent: Friday, June 12, 2009 7:41:31 AM
Subject: [c-prog] Re: template class of array.





--- In c-p...@yahoogroups. com, WLJiang WLJiang <iamwljiang@ ...> wrote:
> > >  But you does not make clear  how to modified.
> > 
> > Don't use NULL in C++. Use plain 0 as a null pointer
> > constant...
> > 
> > if (alist == 0) ...
>
> Yeah, I just want know this program how to modified.
> The key not about alist == NULL or alist == 0 it is how to
> modified make this program can running.

In other words, you just want your assignment finished and
you're not really interested in good programming practice?!

I've already told you how to do it. Put your template
definitions in the header; don't make a separate source
file. If you insist on a separately compiled source file
for templates, then you need to employ explicit template
instantiation. [Google the term, but note that many old
compilers don't support it.]

-- 
Peter


   


      

[Non-text portions of this message have been removed]

Reply via email to