aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise 9/ReferenceExamples.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'InClassExercise 9/ReferenceExamples.cpp')
-rw-r--r--InClassExercise 9/ReferenceExamples.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/InClassExercise 9/ReferenceExamples.cpp b/InClassExercise 9/ReferenceExamples.cpp
new file mode 100644
index 0000000..601a0ef
--- /dev/null
+++ b/InClassExercise 9/ReferenceExamples.cpp
@@ -0,0 +1,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;
+
+}
+