commit 89be4a4a941cc207c79495bedd22f82ac018e3db Author: TheZoq2 Date: Tue May 14 20:34:05 2019 +0200 Första förbindelse :ok_hand: 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; + } + } +}