Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 2016ws
  • 2017ws
  • 2018ws
  • 2019ws
  • 2020ws
  • 2021ws
  • 2022ws
  • 2023ws
  • 2024ws
9 results

Target

Select target project
No results found
Select Git revision
  • 2016ws
  • 2017ws
  • 2018ws
  • master
4 results
Show changes
1000 files
+ 31879
6512
Compare changes
  • Side-by-side
  • Inline

Files

20191010/hello-gtk.c

deleted100644 → 0
+0 −23
Original line number Diff line number Diff line
#include <gtk/gtk.h>

int main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (window), "Hello");
  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
  GtkWidget *vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
  gtk_container_add (GTK_CONTAINER (window), vbox);
  gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
  GtkWidget *label = gtk_label_new ("Hello, world!");
  gtk_container_add (GTK_CONTAINER (vbox), label);
  GtkWidget *button = gtk_button_new_with_label ("Quit");
  g_signal_connect (button, "clicked", G_CALLBACK (gtk_main_quit), NULL);
  gtk_container_add (GTK_CONTAINER (vbox), button);
  gtk_widget_show (button);
  gtk_widget_show (label);
  gtk_widget_show (vbox);
  gtk_widget_show (window);
  gtk_main ();
  return 0;
}

20191010/hello.pas

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
program Hello;

begin
  WriteLn ('Hello, world!')
end.

20191010/hp-20191010-fig1.tex

deleted100644 → 0
+0 −60
Original line number Diff line number Diff line
\documentclass{article}
\input tmp.inputs
\pagestyle{empty}
\begin{document}
      \psscalebox{0.8}{%
        \begin{pspicture}(-5,0)(12,12)
          \small
          \psset{unit=0.5cm}
          \psline[arrows=<->](-1,0)(-1,22)
          \rput(-1.3,0){\makebox(0,0)[br]{\textbf{gegenständlich}}}
          \rput(-1.3,22){\makebox(0,0)[tr]{\textbf{abstrakt}}}
          \rput(-1.3,2){\makebox(0,0)[r]{Elektromagnetismus, Halbleiter}}
          \rput(-1.3,4){\makebox(0,0)[r]{Elektronische Bauelemente}}
          \rput(-1.3,6){\makebox(0,0)[r]{Logik-Schaltkreise}}
          \rput(-1.3,8){\makebox(0,0)[r]{Prozessoren}}
          \rput(-1.3,9){\makebox(0,0)[r]{Maschinensprache}}
          \rput(-1.3,10){\makebox(0,0)[r]{Assembler}}
          \rput(-1.3,11){\makebox(0,0)[r]{Ein-/Ausgabe}}
          \rput(-1.3,12.35){\makebox(0,0)[r]{\textbf{hardwarenahe Programmierung} (z.\,B.\ in C)}}
          \rput(-1.3,14){\makebox(0,0)[r]{\shortstack[r]{abstrahierende Programmierung\\(z.\,B.\ in C++, Java)}}}
%          \rput(-1.3,15){\makebox(0,0)[r]{Programmierung}}
          \rput(-1.3,16){\makebox(0,0)[r]{Algorithmen, Datenstrukturen, Software-Entwurf}}
          \rput(-1.3,17){\makebox(0,0)[r]{Requirements Engineering}}
          \rput(-1.3,18){\makebox(0,0)[r]{formale Sprachen, Berechenbarkeit}}
          \rput(-1.3,19){\makebox(0,0)[r]{mathematische Strukturen}}
          \rput(-1.3,20){\makebox(0,0)[r]{mathematische Beweise}}
          \rput(2.1,0.5){\makebox(0,0)[l]{Physik}}
          \rput(4.1,4){\makebox(0,0)[l]{Elektrotechnik}}
          \rput(6.1,8){\makebox(0,0)[l]{Rechnertechnik}}
          \rput(8.1,12.35){\makebox(0,0)[l]{angewandte Informatik}}
          \rput(10.1,16){\makebox(0,0)[l]{\shortstack[l]{Softwaretechnik und\\theoretische Informatik}}}
          \rput(12.1,21){\makebox(0,0)[l]{Mathematik}}
          \psset{linewidth=0.001,linestyle=none,fillstyle=gradient,gradmidpoint=1.0,gradlines=1000}
          \definecolor{RGBwhite}{rgb}{1.0,1.0,1.0}
          \definecolor{RGBblue}{rgb}{0.0,0.0,1.0}
          \definecolor{RGBred}{rgb}{1.0,0.0,0.0}
          \definecolor{RGBgreen}{rgb}{0.0,1.0,0.0}
          \definecolor{RGByellow}{rgb}{1.0,1.0,0.0}
          \definecolor{RGBorange}{rgb}{1.0,0.7,0.0}
          \definecolor{RGBgrey}{rgb}{0.7,0.7,0.7}
          \rput(0,2){\psframe[gradbegin=RGBwhite,gradend=RGBblue](2,2)}
          \rput(0,0){\psframe[fillstyle=solid,fillcolor=RGBblue](2,2.01)}
          \rput(2,6){\psframe[gradbegin=RGBwhite,gradend=RGBred](2,2)}
          \rput(2,2){\psframe[gradbegin=RGBred,gradend=RGBwhite](2,2)}
          \rput(2,3.99){\psframe[fillstyle=solid,fillcolor=RGBred](2,2.02)}
          \rput(4,10){\psframe[gradbegin=RGBwhite,gradend=RGBgreen](2,2)}
          \rput(4,6){\psframe[gradbegin=RGBgreen,gradend=RGBwhite](2,2)}
          \rput(4,7.99){\psframe[fillstyle=solid,fillcolor=RGBgreen](2,2.02)}
          \rput(6,14){\psframe[gradbegin=RGBwhite,gradend=RGByellow](2,2)}
          \rput(6,10){\psframe[gradbegin=RGByellow,gradend=RGBwhite](2,2)}
          \rput(6,11.99){\psframe[fillstyle=solid,fillcolor=RGByellow](2,2.02)}
          \rput(8,18){\psframe[gradbegin=RGBwhite,gradend=RGBorange](2,2)}
          \rput(8,14){\psframe[gradbegin=RGBorange,gradend=RGBwhite](2,2)}
          \rput(8,15.99){\psframe[fillstyle=solid,fillcolor=RGBorange](2,2.02)}
          \rput(10,18){\psframe[gradbegin=RGBgrey,gradend=RGBwhite](2,2)}
          \rput(10,19.99){\psframe[fillstyle=solid,fillcolor=RGBgrey](2,2.01)}
        \end{pspicture}
      }
    
\end{document}

20191017/functions-5.c

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
#include <stdio.h>

int a = 0, b = 3;

void foo (void)
{
  b++;
  static int a = 5;
  int b = 7;
  printf ("foo(): a = %d, b = %d\n", a, b);
  a++;
}

int main (void)
{
  printf ("main(): a = %d, b = %d\n", a, b);
  foo ();
  printf ("main(): a = %d, b = %d\n", a, b);
  a = b = 12;
  printf ("main(): a = %d, b = %d\n", a, b);
/*
  foo ();
  printf ("main(): a = %d, b = %d\n", a, b);
*/
  return 0;
}

20191017/functions-6.c

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
#include <stdio.h>

int a = 0, b = 3;

void foo (void)
{
  b++;
  static int a = 5;
  int b = 7;
  printf ("foo(): a = %d, b = %d\n", a, b);
  a++;
}

int main (void)
{
  printf ("main(): a = %d, b = %d\n", a, b);
  foo ();
  printf ("main(): a = %d, b = %d\n", a, b);
  a, b = 12;
  printf ("main(): a = %d, b = %d\n", a, b);
/*
  foo ();
  printf ("main(): a = %d, b = %d\n", a, b);
*/
  return 0;
}

20191017/functions-7.c

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
#include <stdio.h>

int a = 0, b = 3;

void foo (void)
{
  b++;
  static int a = 5;
  int b = 7;
  printf ("foo(): a = %d, b = %d\n", a, b);
  a++;
}

int main (void)
{
  printf ("main(): a = %d, b = %d\n", a, b);
  foo ();
  printf ("main(): a = %d, b = %d\n", a, b);
  a = b = 12;
  printf ("main(): a = %d, b = %d\n", a, b);
  foo ();
/*
  printf ("main(): a = %d, b = %d\n", a, b);
*/
  return 0;
}

20191017/functions-8.s

deleted100644 → 0
+0 −88
Original line number Diff line number Diff line
	.file	"functions-8.c"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"foo(): a = %d, b = %d\n"
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB11:
	.cfi_startproc
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	addl	$1, b(%rip)
	movl	$7, %edx
	movl	a.2249(%rip), %esi
	leaq	.LC0(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, a.2249(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11:
	.size	foo, .-foo
	.section	.rodata.str1.1
.LC1:
	.string	"main(): a = %d, b = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movl	b(%rip), %edx
	movl	a(%rip), %esi
	leaq	.LC1(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	call	foo
	movl	b(%rip), %edx
	movl	a(%rip), %esi
	leaq	.LC1(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$12, b(%rip)
	movl	$12, a(%rip)
	movl	$12, %edx
	movl	$12, %esi
	leaq	.LC1(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	call	foo
	movl	b(%rip), %edx
	movl	a(%rip), %esi
	leaq	.LC1(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.data
	.align 4
	.type	a.2249, @object
	.size	a.2249, 4
a.2249:
	.long	5
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.long	3
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.ident	"GCC: (Debian 6.3.0-18+deb9u1) 6.3.0 20170516"
	.section	.note.GNU-stack,"",@progbits

20191017/hello-1.s

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
	.file	"hello-1.c"
	.section	.rodata
.LC0:
	.string	"Hello, world!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Debian 6.3.0-18+deb9u1) 6.3.0 20170516"
	.section	.note.GNU-stack,"",@progbits

20191017/hello-2.s

deleted100644 → 0
+0 −21
Original line number Diff line number Diff line
	.file	"hello-2.c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Debian 6.3.0-18+deb9u1) 6.3.0 20170516"
	.section	.note.GNU-stack,"",@progbits

20191017/hp-20191017-fig1.tex

deleted100644 → 0
+0 −60
Original line number Diff line number Diff line
\documentclass{article}
\input tmp.inputs
\pagestyle{empty}
\begin{document}
      \psscalebox{0.8}{%
        \begin{pspicture}(-5,0)(12,12)
          \small
          \psset{unit=0.5cm}
          \psline[arrows=<->](-1,0)(-1,22)
          \rput(-1.3,0){\makebox(0,0)[br]{\textbf{gegenständlich}}}
          \rput(-1.3,22){\makebox(0,0)[tr]{\textbf{abstrakt}}}
          \rput(-1.3,2){\makebox(0,0)[r]{Elektromagnetismus, Halbleiter}}
          \rput(-1.3,4){\makebox(0,0)[r]{Elektronische Bauelemente}}
          \rput(-1.3,6){\makebox(0,0)[r]{Logik-Schaltkreise}}
          \rput(-1.3,8){\makebox(0,0)[r]{Prozessoren}}
          \rput(-1.3,9){\makebox(0,0)[r]{Maschinensprache}}
          \rput(-1.3,10){\makebox(0,0)[r]{Assembler}}
          \rput(-1.3,11){\makebox(0,0)[r]{Ein-/Ausgabe}}
          \rput(-1.3,12.35){\makebox(0,0)[r]{\textbf{hardwarenahe Programmierung} (z.\,B.\ in C)}}
          \rput(-1.3,14){\makebox(0,0)[r]{\shortstack[r]{abstrahierende Programmierung\\(z.\,B.\ in C++, Java)}}}
%          \rput(-1.3,15){\makebox(0,0)[r]{Programmierung}}
          \rput(-1.3,16){\makebox(0,0)[r]{Algorithmen, Datenstrukturen, Software-Entwurf}}
          \rput(-1.3,17){\makebox(0,0)[r]{Requirements Engineering}}
          \rput(-1.3,18){\makebox(0,0)[r]{formale Sprachen, Berechenbarkeit}}
          \rput(-1.3,19){\makebox(0,0)[r]{mathematische Strukturen}}
          \rput(-1.3,20){\makebox(0,0)[r]{mathematische Beweise}}
          \rput(2.1,0.5){\makebox(0,0)[l]{Physik}}
          \rput(4.1,4){\makebox(0,0)[l]{Elektrotechnik}}
          \rput(6.1,8){\makebox(0,0)[l]{Rechnertechnik}}
          \rput(8.1,12.35){\makebox(0,0)[l]{angewandte Informatik}}
          \rput(10.1,16){\makebox(0,0)[l]{\shortstack[l]{Softwaretechnik und\\theoretische Informatik}}}
          \rput(12.1,21){\makebox(0,0)[l]{Mathematik}}
          \psset{linewidth=0.001,linestyle=none,fillstyle=gradient,gradmidpoint=1.0,gradlines=1000}
          \definecolor{RGBwhite}{rgb}{1.0,1.0,1.0}
          \definecolor{RGBblue}{rgb}{0.0,0.0,1.0}
          \definecolor{RGBred}{rgb}{1.0,0.0,0.0}
          \definecolor{RGBgreen}{rgb}{0.0,1.0,0.0}
          \definecolor{RGByellow}{rgb}{1.0,1.0,0.0}
          \definecolor{RGBorange}{rgb}{1.0,0.7,0.0}
          \definecolor{RGBgrey}{rgb}{0.7,0.7,0.7}
          \rput(0,2){\psframe[gradbegin=RGBwhite,gradend=RGBblue](2,2)}
          \rput(0,0){\psframe[fillstyle=solid,fillcolor=RGBblue](2,2.01)}
          \rput(2,6){\psframe[gradbegin=RGBwhite,gradend=RGBred](2,2)}
          \rput(2,2){\psframe[gradbegin=RGBred,gradend=RGBwhite](2,2)}
          \rput(2,3.99){\psframe[fillstyle=solid,fillcolor=RGBred](2,2.02)}
          \rput(4,10){\psframe[gradbegin=RGBwhite,gradend=RGBgreen](2,2)}
          \rput(4,6){\psframe[gradbegin=RGBgreen,gradend=RGBwhite](2,2)}
          \rput(4,7.99){\psframe[fillstyle=solid,fillcolor=RGBgreen](2,2.02)}
          \rput(6,14){\psframe[gradbegin=RGBwhite,gradend=RGByellow](2,2)}
          \rput(6,10){\psframe[gradbegin=RGByellow,gradend=RGBwhite](2,2)}
          \rput(6,11.99){\psframe[fillstyle=solid,fillcolor=RGByellow](2,2.02)}
          \rput(8,18){\psframe[gradbegin=RGBwhite,gradend=RGBorange](2,2)}
          \rput(8,14){\psframe[gradbegin=RGBorange,gradend=RGBwhite](2,2)}
          \rput(8,15.99){\psframe[fillstyle=solid,fillcolor=RGBorange](2,2.02)}
          \rput(10,18){\psframe[gradbegin=RGBgrey,gradend=RGBwhite](2,2)}
          \rput(10,19.99){\psframe[fillstyle=solid,fillcolor=RGBgrey](2,2.01)}
        \end{pspicture}
      }
    
\end{document}

20191017/if-10.c

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  int a = 7;
  int b;
  if ((b += a) == 0)
    printf ("Bitte nicht durch 0 teilen!\n");
  else
    printf ("100 / a = %d\n", 100 / a);
  return 0;
}

20191017/if-11.c

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  int a = 7;
  int b = 0;
  if ((b += a) == 0)
    printf ("Bitte nicht durch 0 teilen!\n");
  else
    printf ("100 / a = %d\n", 100 / a);
  return 0;
}

20191017/if-3.c

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  int b = 12;
  if (b)
    printf ("100 / b = %d\n", 100 / b);
    printf ("100 % b = %d\n", 100 % b);
  return 0;
}

20191017/if-8.c

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  int a = 7;
  if (a = 0)
    printf ("Bitte nicht durch 0 teilen!\n");
  else
    printf ("100 / a = %d\n", 100 / a);
  return 0;
}

20191017/if-9.c

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  int a = 7;
  int b;
  if ((b = a) == 0)
    printf ("Bitte nicht durch 0 teilen!\n");
  else
    printf ("100 / a = %d\n", 100 / a);
  return 0;
}

20191017/while-1.c

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
#include <stdio.h>

int main (void) { while (0) printf ("Hello, world!\n"); return 0; }

20191017/while-5.c

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
#include <stdio.h>

int main (void) {
    while (1) {
        printf ("Hello, world!\n");
    }
  return 0;
}

20191017/while-6.c

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
#include <stdio.h>

int
main (void)
{
  while (1)
    {
      printf ("Hello, world!\n");
    }
  return 0;
}

20191024/aufgabe-2.c

deleted100644 → 0
+0 −18
Original line number Diff line number Diff line
  year = ORIGINYEAR;  /* = 1980 */

  while (days > 365)
    {
      if (IsLeapYear (year))
        {
          if (days > 366)
            {
              days -= 366;
              year += 1;
            }
        }
      else
        {
          days -= 365;
          year += 1;
        }
    }

20191024/test-5.c

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Die Antwort lautet: %x.\n", 'B');
  return 0;
}

20191031/chars-1.c

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("%c\n", 117);
  return 0;
}