All pastes #674382 Raw Edit

PC_lister.cpp

public cpp v1 · immutable
#674382 ·published 2007-08-29 05:40 UTC
rendered paste body
#include <iostream>#include <cstdlib>#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;};