aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise 9/PointerExercises.cpp
blob: 003734d316d25636a421b611ec72cf425ce34a6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "PointerExercises.h"
#include <iostream>
using std::cout;
using std::endl;

void Swap(Node* first, Node* second) 
{
	int temp = first->_num;
	first->_num = second->_num;
	second->_num = temp;
}

void Standardize_101(Node* node) 
{
	node->_num %= 101;
}

void Square(Node* node) 
{
	node->_num *= node->_num;
}