From d6a5d5c6287974e0de3acc03fde384efa7c30c3d Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Thu, 8 Feb 2024 16:16:57 -0800 Subject: ohmygoditallworks --- Inclass 10/PointerExamples.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Inclass 10/PointerExamples.cpp') diff --git a/Inclass 10/PointerExamples.cpp b/Inclass 10/PointerExamples.cpp index 0511482..3a652e0 100644 --- a/Inclass 10/PointerExamples.cpp +++ b/Inclass 10/PointerExamples.cpp @@ -19,14 +19,14 @@ void Swap(Node* first, Node* second) void Standardize_101(Node* newNode) { - newNode->data % 101; + newNode->data = newNode->data % 101; } -void Square(Node* thirdNode) +void Square(Node* nextNode) { - + nextNode->data = nextNode->data * nextNode->data; } \ No newline at end of file -- cgit v1.2.3