diff options
| author | Asahel <[email protected]> | 2024-02-06 09:08:50 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-02-06 09:08:50 -0800 |
| commit | 5795389ffa825f1529db9a226374d8b4299ce66c (patch) | |
| tree | 613f463b88bb26891d8836a7937c23245a4ba413 /InClassExercise 9/ReferenceExamples.cpp | |
| parent | add deadline (diff) | |
| download | in-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.cpp | 22 |
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; + +} + |