diff options
| author | Asahel <[email protected]> | 2024-02-12 09:39:25 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-02-12 09:39:25 -0800 |
| commit | 35721098260cec8410d63e040546dba3ee81ec75 (patch) | |
| tree | 24dd0cd9b37f7f7ce592df178a97dae8972a0b45 | |
| parent | Not sure if I commited. Making sure. (diff) | |
| download | in-class-exercise-9-asahellt-35721098260cec8410d63e040546dba3ee81ec75.tar.xz in-class-exercise-9-asahellt-35721098260cec8410d63e040546dba3ee81ec75.zip | |
| -rw-r--r-- | InClassExercise 9/Node.h | 2 | ||||
| -rw-r--r-- | InClassExercise 9/PointerExercises.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/InClassExercise 9/Node.h b/InClassExercise 9/Node.h index b0ba7cd..0096e53 100644 --- a/InClassExercise 9/Node.h +++ b/InClassExercise 9/Node.h @@ -2,7 +2,7 @@ #define NODE_H struct Node { - int data; + int _num; Node* _next; }; diff --git a/InClassExercise 9/PointerExercises.cpp b/InClassExercise 9/PointerExercises.cpp index 003734d..d5dc15b 100644 --- a/InClassExercise 9/PointerExercises.cpp +++ b/InClassExercise 9/PointerExercises.cpp @@ -1,8 +1,11 @@ + #include "PointerExercises.h" #include <iostream> + using std::cout; using std::endl; + void Swap(Node* first, Node* second) { int temp = first->_num; |