#include
} void node :: INSERTAFTER (Node * lastptr) {lastptr-> Next = this-> next; this-> next = lastptr;} node * node :: thisnode (void) {returnid;} void main () {int A, I; Node * lastptr, * head, * currptr; cout << "please input A: << ENDL; CIN >> A; Node Example1 (a); head = example1.thisode (); currptr = head; For (i = 0; i <9; i ) {lastptr = example1.thisNode (); cin >> a; node example1 (a); example1.insertafter (lastptr);} cout << Endl; while (currptr! = NULL) {cout << currptr-> data; currptr = currptr-> next;}}
How should this program modified? Thank you