aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise 9/ReferenceExamples.cpp
blob: 601a0eff947142dc50b7d7c15cf26fa78b88b47f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include "ReferenceExamples.h"

using std::cout;
using std::endl;

void Swap(int& x, int& y) {
	
	cout << "x = " << x << " , y = " << y << endl;
}

void Standardize_101(int& n) {

	n %=101;
}

void Square(int& x) {

	x*= x;

}