From 5795389ffa825f1529db9a226374d8b4299ce66c Mon Sep 17 00:00:00 2001 From: Asahel Date: Tue, 6 Feb 2024 09:08:50 -0800 Subject: Completed assignment. --- InClassExercise 9/ReferenceExamples.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 InClassExercise 9/ReferenceExamples.cpp (limited to 'InClassExercise 9/ReferenceExamples.cpp') 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 +#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; + +} + -- cgit v1.2.3