diff options
Diffstat (limited to 'Inclass 10/PointerExamples.cpp')
| -rw-r--r-- | Inclass 10/PointerExamples.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Inclass 10/PointerExamples.cpp b/Inclass 10/PointerExamples.cpp index 4889659..16de9c3 100644 --- a/Inclass 10/PointerExamples.cpp +++ b/Inclass 10/PointerExamples.cpp @@ -8,19 +8,24 @@ using std::endl; void Swap(Node* first, Node* second) { + int test = 0; + int test2 = 0; + first->data = test; + second->data = test2; + cout << "first node swapped is (correct 16): " << second << " the second node swapped is (correct 24): " << first << endl; +} -} - -void Standardize_101(Node* node) +void Standardize_101(Node* thirdNode) { - - + /*int stan = 0; + Node* thirdNode = stan; + thirdNode->_data = stan;*/ } -void Square(Node* node) +void Square(Node* thirdNode) { |