From 89be4a4a941cc207c79495bedd22f82ac018e3db Mon Sep 17 00:00:00 2001 From: TheZoq2 Date: Tue, 14 May 2019 20:34:05 +0200 Subject: [PATCH] =?UTF-8?q?F=C3=B6rsta=20f=C3=B6rbindelse=20:ok=5Fhand:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .jävelignorering | 1 + sv.cpp | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 120000 .jävelignorering create mode 100644 sv.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cba7efc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +a.out diff --git a/.jävelignorering b/.jävelignorering new file mode 120000 index 0000000..3e4e48b --- /dev/null +++ b/.jävelignorering @@ -0,0 +1 @@ +.gitignore \ No newline at end of file diff --git a/sv.cpp b/sv.cpp new file mode 100644 index 0000000..692b503 --- /dev/null +++ b/sv.cpp @@ -0,0 +1,31 @@ +#define hel int +#define hufvud main +#define teck char +#define pekare * +#define dubbelpekare pekare pekare +#define referens_till & +#define dereferera * +#define skrivutf printf +#define medans while +#define placeras puts +#define mall template +#define sluta break +#define om if +#define uppfostra throw + +#include + +hel hufvud(hel arga, teck dubbelpekare argv) +{ + hel i = 0; + teck dubbelpekare nuvarande = argv; + + medans (i < arga) { + placeras(dereferera nuvarande); + nuvarande++; + i++; + om (i == 3) { + sluta; + } + } +}