--- In [email protected], WLJiang WLJiang <iamwlji...@...> 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
