Hello guys. I am making a single linked list and I am stuck at a point where i have to declare a dummy head node as static. Problem is how can I initialize this variable now?
Basically I'm not doing this in header.. I am writing this class above my main function.. Iget following errors:
syntax error : missing ';' before '*'
error C2065: 'type' : undeclared identifier
'SnglLnkLstDmHdr' : 'type' is not a valid template type argument for parameter 'type'
Mysteriously your code is working and mine is giving error.. Although they are exactly same but mine code is giving error.. I guess it's a compiler issue.. Thanks alot.. :)