aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise 9
diff options
context:
space:
mode:
Diffstat (limited to 'InClassExercise 9')
-rw-r--r--InClassExercise 9/Node.h2
-rw-r--r--InClassExercise 9/PointerExercises.cpp3
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;