hi all,
i have the following code:
when i try to run it i get this error:PHP Code:
#include <iostream.h>
typedef struct node * ptr;
template <class T> struct node{
ptr next;
T item;
};
int main()
{
// do nothing
system("PAUSE");
return 0;
}
[C++ Error] stack.cpp(4): E2356 Type mismatch in redeclaration of 'node'
i think its from the typedef but i dunno how to fix it!
thanks for any help.