aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise 9/ReferenceExamples.cpp
diff options
context:
space:
mode:
authorAsahel <[email protected]>2024-02-06 09:08:50 -0800
committerAsahel <[email protected]>2024-02-06 09:08:50 -0800
commit5795389ffa825f1529db9a226374d8b4299ce66c (patch)
tree613f463b88bb26891d8836a7937c23245a4ba413 /InClassExercise 9/ReferenceExamples.cpp
parentadd deadline (diff)
downloadin-class-exercise-9-asahellt-5795389ffa825f1529db9a226374d8b4299ce66c.tar.xz
in-class-exercise-9-asahellt-5795389ffa825f1529db9a226374d8b4299ce66c.zip
Completed assignment.
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;
+
+}
+