From 35721098260cec8410d63e040546dba3ee81ec75 Mon Sep 17 00:00:00 2001 From: Asahel Date: Mon, 12 Feb 2024 09:39:25 -0800 Subject: Fixed error! --- InClassExercise 9/Node.h | 2 +- InClassExercise 9/PointerExercises.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 + using std::cout; using std::endl; + void Swap(Node* first, Node* second) { int temp = first->_num; -- cgit v1.2.3