summaryrefslogtreecommitdiff
path: root/os2w1/main.cpp
diff options
context:
space:
mode:
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;
+}