Skip to content
Snippets Groups Projects
Select Git revision
  • ae93ac07faa914f33b213baad64dc347725fdcef
  • master default protected
  • 2018ws
  • 2017ws
  • 2016ws
5 results

hp-uebung-20220926.tex

Blame
  • Forked from Peter Gerwinski / hp
    Source project has a limited visibility.
    hp-uebung-20220926.tex 3.70 KiB
    % hp-uebung-20220926.pdf - Exercises on Low-Level Programming / Applied Computer Sciences
    % Copyright (C) 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022  Peter Gerwinski
    %
    % This document is free software: you can redistribute it and/or
    % modify it either under the terms of the Creative Commons
    % Attribution-ShareAlike 3.0 License, or under the terms of the
    % GNU General Public License as published by the Free Software
    % Foundation, either version 3 of the License, or (at your option)
    % any later version.
    %
    % This document is distributed in the hope that it will be useful,
    % but WITHOUT ANY WARRANTY; without even the implied warranty of
    % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    % GNU General Public License for more details.
    %
    % You should have received a copy of the GNU General Public License
    % along with this document.  If not, see <http://www.gnu.org/licenses/>.
    %
    % You should have received a copy of the Creative Commons
    % 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
    
    \documentclass[a4paper]{article}
    
    \usepackage{pgscript}
    
    \thispagestyle{empty}
    
    \begin{document}
    
      \thispagestyle{empty}
    
      \section*{Hardwarenahe Programmierung\\
                Übungsaufgaben -- 26.\ September 2022}
    
      \exercise{Hello, world!}
    
      Unter \url{https://gitlab.cvh-server.de/pgerwinski/hp/tree/2022ws/20220926}
      können Sie
      \href{https://gitlab.cvh-server.de/pgerwinski/hp/raw/2021ws/20211004/hp-uebung-20220926.pdf}%
           {diesen Übungszettel als PDF-Datei}
      herunterladen sowie die folgenden Beispielprogramme:
      \begin{enumerate}[\quad(a)]
        \item \gitfile{hp}{2022ws/20220926}{hello.c}
        \item \gitfile{hp}{2022ws/20220926}{hello-gtk.c}
      \end{enumerate}
      Bringen Sie diese Programme auf Ihrem eigenen Rechner
      und/oder auf einem Rechner der Hochschule
      unter einem Betriebssystem Ihrer Wahl zum Laufen.
    
      \file{hello.c} ist das klassische "`Hello, world!"'-Programm;
      \file{hello-gtk} erzeugt ein Fenster mit einem Button zum Schließen.
      (Wie diese Programme im einzelnen funktionieren,
      wird im Laufe der Lehrveranstaltung erklärt werden.
      In dieser Übung geht es nur darum,
      sich mit dem Compilieren von C-Programmen vertraut zu machen.)
    
      \textbf{Hinweis 0:} Diese PDF-Datei enthält Links zu den jeweiligen Dateien.
      Durch Anklicken können Sie diese direkt herunterladen.
    
      \textbf{Hinweis 1:} Für (b) benötigen Sie die Bibliothek GTK+.
      Diese finden Sie -- einschließlich Dokumentation -- als freie Software im Internet.
    
      \textbf{Hinweis 2:} Unter Unix mit \lstinline[style=cmd]{gcc}
      funktioniert das Compilieren und Starten der Programme folgendermaßen:
      \begin{lstlisting}[style=cmd]
        gcc -Wall -O hello.c -o hello
        ./hello