diff options
Diffstat (limited to 'Inclass 10/program.cpp')
| -rw-r--r-- | Inclass 10/program.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Inclass 10/program.cpp b/Inclass 10/program.cpp index fb9b9c6..e591996 100644 --- a/Inclass 10/program.cpp +++ b/Inclass 10/program.cpp @@ -25,6 +25,8 @@ int main() newNode.next = &nextNode; + cout << nextNode.data << endl; + Swap(&newNode, &nextNode); cout << "first node swapped is: " << newNode.data << " the second node swapped is : " << nextNode.data << endl; |