aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise9/InClassExercise9/ReferenceExamples.cpp
blob: 26381bf6b8b44c215112ba619b72b0ac522c2684 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "ReferenceExamples.h"

void Swap(int& x, int& y) {
	int temp = x;
	x = y;
	y = temp;
}

void Standardize_101(int& n) {
	n %= 101;
}

void Square(int& x) {
	x *= x;
}