diff --git a/program3.cpp b/program3.cpp index 79dfd9f..7813e05 100644 --- a/program3.cpp +++ b/program3.cpp @@ -1,10 +1,11 @@ #include #include using namespace std; + class node { /* - objective: Create a class for implementing node + Objective: Create a class for implementing node input parameters: none output value: none description: class definition @@ -94,6 +95,7 @@ void linkedlist::reverse_consec() int t; node *temp=head; + while(temp&&temp->next!=0) { t=temp->info;