summaryrefslogtreecommitdiff
path: root/os2w1/main.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-04-23 18:03:35 +0200
committerlonkaars <loek@pipeframe.xyz>2023-04-23 18:03:35 +0200
commit14f65e6875ba4c7c6f101b6f847419f194ed697c (patch)
treef6f59c7fd871e616bb603682e3fe5c7561769fd2 /os2w1/main.cpp
parenta6a4f8079f990705cf7007e74d5d1bc1d906e306 (diff)
os2w1 gemaakt
Diffstat (limited to 'os2w1/main.cpp')
-rw-r--r--os2w1/main.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/os2w1/main.cpp b/os2w1/main.cpp
new file mode 100644
index 0000000..b7d4663
--- /dev/null
+++ b/os2w1/main.cpp
@@ -0,0 +1,28 @@
+#include <iostream>
+
+using namespace std;
+
+void show(int m, int n);
+void swap(int a, int b);
+
+int main() {
+ int a = 5;
+ int b = 7;
+
+ show(a, b);
+ swap(a, b);
+ show(a, b);
+
+ return 0;
+}
+
+void show(int m, int n) {
+ cout << "Getallen: " << m << ", " << n << endl;
+}
+
+void swap(int a, int b) {
+ int h;
+ h = a;
+ a = b;
+ b = h;
+}