just started learning linked lists, and i'm having some problems. was wondering if anyone could help me out...

Code://node.h file////////////////////////// #ifndef NODE_H #define NODE_H class NODE { private: int i; NODE *next; }; #endifwhen i try to compile it, i get the following error messages:Code://linkedlist.cpp (main .cpp) file///////////////// #include <iostream.h> #include <conio.h> #include "node.h" int main() { NODE *first; NODE *temp=new NODE; int a=0; temp->i=100; temp->next=NULL; first=temp; a=first; cout << a; getch(); return 0; }

'NODE::i' is not accessible

'NODE::next' is not accessible

if anyone could help, i would really really appreciate it. thanks in advance. oh, and i'm using borland 5.02

thanks again