From 47c35fa1f88b4fc8172a81cd46319f45eca6d40a Mon Sep 17 00:00:00 2001 From: SinusFox Date: Wed, 3 May 2023 18:08:43 +0200 Subject: [PATCH 1/4] removed upload of vscode files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 259148f..ac511ed 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ *.exe *.out *.app + +# VS Code +.vscode/ From cf065478745b1dec4db69553f0f6cc709a063637 Mon Sep 17 00:00:00 2001 From: SinusFox Date: Wed, 3 May 2023 18:30:15 +0200 Subject: [PATCH 2/4] removed upload of .jar files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ac511ed..8907886 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ *.exe *.out *.app +*.jar # VS Code .vscode/ From 27a6f71521252cd2ee2304a9aa0d7674fbca232c Mon Sep 17 00:00:00 2001 From: SinusFox Date: Wed, 3 May 2023 18:30:26 +0200 Subject: [PATCH 3/4] upload of Exercise 1 --- Exercise 1 - Hello World/C/ex1.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Exercise 1 - Hello World/C/ex1.c diff --git a/Exercise 1 - Hello World/C/ex1.c b/Exercise 1 - Hello World/C/ex1.c new file mode 100644 index 0000000..1223597 --- /dev/null +++ b/Exercise 1 - Hello World/C/ex1.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("Hello World the second - I coded this before. So yeah, FOXES ARE SUPERIOR.\nBut the professor wants us to write the following: \"index = 2 * count + 42;\""); + return 0; +} From 53fec3a674fe068a0a7ab0126f038eabe9f44b8a Mon Sep 17 00:00:00 2001 From: SinusFox Date: Wed, 3 May 2023 18:55:17 +0200 Subject: [PATCH 4/4] extracting the text to a var --- Exercise 1 - Hello World/C/ex1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Exercise 1 - Hello World/C/ex1.c b/Exercise 1 - Hello World/C/ex1.c index 1223597..3cc7b8a 100644 --- a/Exercise 1 - Hello World/C/ex1.c +++ b/Exercise 1 - Hello World/C/ex1.c @@ -1,6 +1,7 @@ #include int main() { - printf("Hello World the second - I coded this before. So yeah, FOXES ARE SUPERIOR.\nBut the professor wants us to write the following: \"index = 2 * count + 42;\""); + char* sourcecode = "Hello World the second - I coded this before. So yeah, FOXES ARE SUPERIOR.\nBut the professor wants us to write the following: \"index = 2 * count + 42;\""; + printf(sourcecode); return 0; }