error C2244: 'dslk<T>::addhead' : unable to resolve function overload
error C2954: template definitions cannot nest
error C2244: 'dslk<T>::print' : unable to resolve function overload
error C2065:...
Type: Posts; User: phoenix2007
error C2244: 'dslk<T>::addhead' : unable to resolve function overload
error C2954: template definitions cannot nest
error C2244: 'dslk<T>::print' : unable to resolve function overload
error C2065:...
Yes, thanx all ! I fixed them follow you ! but, it still has 8 errors !
oh ! I'm sorry ! I've just remember !
void main(void)
just right in C, not in C++. If in C++, must write :
void main()
Is that ok ?
Oh ! I wrote
void main(void)
It' s not wrong ! Because, in main functiuon, if I write follow you ! i have to return a value, That's thing I don't want !
#include "iostream.h"
instead of...
ok ! It's kind of you ! thanks again !
I have finished my course about C/C++, I need a good e-book about it ! (advance), if ypu have, please share me one ! Thanks a lots ! Have a nice day !
error C2244: 'dslk<T>::addhead' : unable to resolve function overload
error C2954: template definitions cannot nest
error C2244: 'dslk<T>::print' : unable to resolve function overload
error C2065:...
This is the code wrote inOP C++ ! I don't know what error it has ? please help me !
#include <iostream.h>
template <class T>
//define struct link list
struct Node
{