From 1376ef4d925d678ba0dde974d11b87cb3eac1fc4 Mon Sep 17 00:00:00 2001
From: Peter Gerwinski <peter.gerwinski@hs-bochum.de>
Date: Thu, 5 Dec 2019 10:13:29 +0100
Subject: [PATCH] Nachbereitung 28.11.2019

---
 20191128/gtk-4.c         | 1 +
 20191128/gtk-5.c         | 1 +
 20191128/higher-math-1.c | 9 +++++++++
 20191128/higher-math-2.c | 9 +++++++++
 20191128/higher-math-3.c | 9 +++++++++
 20191128/higher-math-4.c | 9 +++++++++
 20191128/higher-math-5.c | 9 +++++++++
 20191128/higher-math-6.c | 9 +++++++++
 8 files changed, 56 insertions(+)
 create mode 100644 20191128/higher-math-1.c
 create mode 100644 20191128/higher-math-2.c
 create mode 100644 20191128/higher-math-3.c
 create mode 100644 20191128/higher-math-4.c
 create mode 100644 20191128/higher-math-5.c
 create mode 100644 20191128/higher-math-6.c

diff --git a/20191128/gtk-4.c b/20191128/gtk-4.c
index 3e15b64..132dbcb 100644
--- a/20191128/gtk-4.c
+++ b/20191128/gtk-4.c
@@ -17,6 +17,7 @@ int main (int argc, char **argv)
   GtkWidget *drawing_area = gtk_drawing_area_new ();
   gtk_container_add (GTK_CONTAINER (vbox), drawing_area);
 
+  gtk_widget_show (drawing_area);
   gtk_widget_show (button);
   gtk_widget_show (vbox);
   gtk_widget_show (window);
diff --git a/20191128/gtk-5.c b/20191128/gtk-5.c
index 132dbcb..c77feaa 100644
--- a/20191128/gtk-5.c
+++ b/20191128/gtk-5.c
@@ -16,6 +16,7 @@ int main (int argc, char **argv)
 
   GtkWidget *drawing_area = gtk_drawing_area_new ();
   gtk_container_add (GTK_CONTAINER (vbox), drawing_area);
+  gtk_widget_set_size_request (drawing_area, 100, 100);
 
   gtk_widget_show (drawing_area);
   gtk_widget_show (button);
diff --git a/20191128/higher-math-1.c b/20191128/higher-math-1.c
new file mode 100644
index 0000000..62b6239
--- /dev/null
+++ b/20191128/higher-math-1.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#define VIER 4
+
+int main (void)
+{
+  printf ("Drei mal vier = %d.\n", 3 * VIER);
+  return 0;
+}
diff --git a/20191128/higher-math-2.c b/20191128/higher-math-2.c
new file mode 100644
index 0000000..e4c228d
--- /dev/null
+++ b/20191128/higher-math-2.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#define VIER vier
+
+int main (void)
+{
+  printf ("Drei mal vier = %d.\n", 3 * VIER);
+  return 0;
+}
diff --git a/20191128/higher-math-3.c b/20191128/higher-math-3.c
new file mode 100644
index 0000000..11f51b6
--- /dev/null
+++ b/20191128/higher-math-3.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#define VIER 4);
+
+int main (void)
+{
+  printf ("Drei mal vier = %d.\n", 3 * VIER
+  return 0;
+}
diff --git a/20191128/higher-math-4.c b/20191128/higher-math-4.c
new file mode 100644
index 0000000..2be0072
--- /dev/null
+++ b/20191128/higher-math-4.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#define VIER 4;
+
+int main (void)
+{
+  printf ("Drei mal vier = %d.\n", 3 * VIER);
+  return 0;
+}
diff --git a/20191128/higher-math-5.c b/20191128/higher-math-5.c
new file mode 100644
index 0000000..ba0687b
--- /dev/null
+++ b/20191128/higher-math-5.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#define VIER 2 + 2
+
+int main (void)
+{
+  printf ("Drei mal vier = %d.\n", 3 * VIER);
+  return 0;
+}
diff --git a/20191128/higher-math-6.c b/20191128/higher-math-6.c
new file mode 100644
index 0000000..82fae73
--- /dev/null
+++ b/20191128/higher-math-6.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#define VIER (2 + 2)
+
+int main (void)
+{
+  printf ("Drei mal vier = %d.\n", 3 * VIER);
+  return 0;
+}
-- 
GitLab