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
  • pgerwinski/hp
  • bwildenhain/hp
  • Daniel.Eisi/hp
  • aahrens/hp
4 results
Select Git revision
  • 2016ws
  • 2017ws
  • 2018ws
  • master
4 results
Show changes
Showing
with 61 additions and 25 deletions
20231109/pull-up-widerstand.png

20.7 KiB

File deleted
File deleted
../common/gitlab.png
\ No newline at end of file
File moved
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
cassini/home/peter/bo/2024ws/hp/20241010> gcc hello-01.c -o hello-01
cassini/home/peter/bo/2024ws/hp/20241010> ls -l hello-*
-rwxr-xr-x 1 peter peter 15952 10. Okt 12:02 hello-01
-rw-r--r-- 1 peter peter 82 10. Okt 12:00 hello-01.c
-rw-r--r-- 1 peter peter 1261 8. Okt 2023 hello-gtk.c
cassini/home/peter/bo/2024ws/hp/20241010> ./hello-01
Hello, world!
cassini/home/peter/bo/2024ws/hp/20241010>
File moved
File moved
#include <stdio.h>
int main (void)
{
printf ("Die Antwort lautet: %d\n", 42);
return 0;
}
File moved
File moved
No preview for this file type
% hp-20231005.pdf - Lecture Slides on Low-Level Programming
% Copyright (C) 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Peter Gerwinski
% hp-20241010.pdf - Lecture Slides on Low-Level Programming
% Copyright (C) 2012, 2013, 2015-2023, 2024 Peter Gerwinski
%
% This document is free software: you can redistribute it and/or
% modify it either under the terms of the Creative Commons
......@@ -20,7 +20,7 @@
% Attribution-ShareAlike 3.0 Unported License along with this
% document. If not, see <http://creativecommons.org/licenses/>.
% README: Einführung, Einführung in C (bis 2.7: Strukturierte Programmierung)
% README: Einführung, Einführung in C
\documentclass[10pt,t]{beamer}
......@@ -41,7 +41,7 @@
\title{Hardwarenahe Programmierung}
\author{Prof.\ Dr.\ rer.\ nat.\ Peter Gerwinski}
\date{5.\ Oktober 2023}
\date{10.\ Oktober 2024}
\begin{document}
......@@ -49,11 +49,11 @@
\date{\begin{picture}(0,0)
\color{red}
\put(0.55,1.05){\makebox(0,0)[t]{$\underbrace{\rule{1.45cm}{0pt}}_{%
\put(0.65,1.05){\makebox(0,0)[t]{$\underbrace{\rule{1.45cm}{0pt}}_{%
\mbox{\emph{rerum naturalium\/} = der natürlichen Dinge (lat.)}}$}}
\put(1.55,-3){\makebox(0,0)[bl]{\redurl{https://www.peter.gerwinski.de/physik/}}}
\end{picture}%
5.\ Oktober 2023}
10.\ Oktober 2024}
\maketitleframe
......@@ -305,11 +305,11 @@
\end{frame}
\sectionnonumber{Zu dieser Lehrveranstaltung}
\nosectionnonumber{Zu dieser Lehrveranstaltung}
\begin{frame}
\showsectionnonumber
\shownosectionnonumber
\begin{itemize}
\item
......@@ -385,7 +385,7 @@
\end{frame}
\section{Einführung}
\setcounter{section}{1}
\section{Einführung in C}
\subsection{Hello, world!}
......
File added
% hp-uebung-20231005.pdf - Exercises on Low-Level Programming / Applied Computer Sciences
% Copyright (C) 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Peter Gerwinski
% hp-uebung-20241010.pdf - Exercises on Low-Level Programming / Applied Computer Sciences
% Copyright (C) 2013, 2015-2023, 2024 Peter Gerwinski
%
% This document is free software: you can redistribute it and/or
% modify it either under the terms of the Creative Commons
......@@ -20,7 +20,7 @@
% Attribution-ShareAlike 3.0 Unported License along with this
% document. If not, see <http://creativecommons.org/licenses/>.
% README: Hello-World-Programme, Schaltjahr ermitteln, Maximum berechnen
% README: 0: Hello-World-Programme, Schaltjahr ermitteln, Maximum berechnen
\documentclass[a4paper]{article}
......@@ -33,18 +33,18 @@
\thispagestyle{empty}
\section*{Hardwarenahe Programmierung\\
Übungsaufgaben -- 5.\ Oktober 2023}
Übungsaufgaben 0 -- 10.\ Oktober 2024}
\exercise{Hello, world!}
Unter \url{https://gitlab.cvh-server.de/pgerwinski/hp/tree/2023ws/20231005}
Unter \url{https://gitlab.cvh-server.de/pgerwinski/hp/tree/2024ws/20241010}
können Sie
\href{https://gitlab.cvh-server.de/pgerwinski/hp/raw/2023ws/20231005/hp-uebung-20231005.pdf}%
{diesen Übungszettel als PDF-Datei}
herunterladen sowie die folgenden Beispielprogramme:
\begin{enumerate}[\quad(a)]
\item \gitfile{hp}{2023ws/20231005}{hello.c}
\item \gitfile{hp}{2023ws/20231005}{hello-gtk.c}
\item \gitfile{hp}{2024ws/20241010}{hello.c}
\item \gitfile{hp}{2024ws/20241010}{hello-gtk.c}
\end{enumerate}
Bringen Sie diese Programme auf Ihrem eigenen Rechner
und/oder auf einem Rechner der Hochschule
......@@ -59,6 +59,7 @@
\textbf{Hinweis 0:} Diese PDF-Datei enthält Links zu den jeweiligen Dateien.
Durch Anklicken können Sie diese direkt herunterladen.
(Falls dies nicht funktionieren sollte, bitte bescheidsagen.)
\textbf{Hinweis 1:} Für (b) benötigen Sie die Bibliothek GTK+.
Diese finden Sie -- einschließlich Dokumentation -- als freie Software im Internet.
......
......@@ -2,10 +2,9 @@
int main (void)
{
int a = 360;
printf ("a = %d\n", a);
int b;
printf ("Bitte b eingeben: ");
int a = 42;
int b = 0;
printf ("a = 42\nBitte b eingeben: ");
scanf ("%d", &b);
printf ("a / b = %d\n", a / b);
return 0;
......
......@@ -2,14 +2,13 @@
int main (void)
{
int a = 360;
printf ("a = %d\n", a);
int b;
printf ("Bitte b eingeben: ");
int a = 42;
int b = 0;
printf ("a = 42\nBitte b eingeben: ");
scanf ("%d", &b);
if (b != 0)
printf ("a / b = %d\n", a / b);
else
printf ("Bitte nicht durch 0 teilen.\n");
printf ("Bitte nicht durch 0 dividieren!\n);
return 0;
}
......@@ -2,14 +2,13 @@
int main (void)
{
int a = 360;
printf ("a = %d\n", a);
int b;
printf ("Bitte b eingeben: ");
int a = 42;
int b = 0;
printf ("a = 42\nBitte b eingeben: ");
scanf ("%d", &b);
if (b = 0)
printf ("Bitte nicht durch 0 teilen.\n");
else
if (b != 0)
printf ("a / b = %d\n", a / b);
else
printf ("Bitte nicht durch 0 dividieren!\n");
return 0;
}