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

Target

Select target project
  • pgerwinski/hp
  • bwildenhain/hp
  • Daniel.Eisi/hp
  • aahrens/hp
4 results
Select Git revision
Show changes
Commits on Source (254)
Showing
with 0 additions and 385 deletions
#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;
}
program Hello;
begin
WriteLn ('Hello, world!')
end.
File deleted
\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}
File deleted
File deleted
#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;
}
#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;
}
#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;
}
.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/gitlab.png

589 B

.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
.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
File deleted
\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}
File deleted
File deleted
File deleted
#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;
}
#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;
}