#include #include #include "node.h" using namespace std; using namespace PC_lab05; int main() { cout << "This is a Node program" << endl; node* headptr=NULL; node* tailptr=NULL; node* tempptr=NULL; for (int count=0;count<=10 ;count++){ data_type user_input; cin >> user_input; node* A=new node(user_input,NULL); if (headptr==NULL) //Check if a list exists. { headptr = A; tailptr = A; } else { //A list does exist, then add to X. A->set_link(headptr); headptr = A; } } headptr=A; tailptr=A; return EXIT_SUCCESS; };