C++ zu Hause 20220316
This commit is contained in:
+29
-19
@@ -24,7 +24,7 @@
|
||||
\usepackage{amsmath}
|
||||
\usepackage{mathtools}
|
||||
\usepackage{esint}%volumen und oberflächenintegrale
|
||||
\usepackage[thinc]{esdiff}%derivative-macros
|
||||
%\usepackage[thinc]{esdiff}%derivative-macros
|
||||
\usepackage{physics}
|
||||
\usepackage{siunitx}
|
||||
%Sonstiges
|
||||
@@ -1454,6 +1454,8 @@ float f = 3.141;
|
||||
mit Wertebereich $[0,2^{\textrm{bits}}-1]$
|
||||
\end{frame}
|
||||
|
||||
%%TODO Genauigkeit und interne Darstellung
|
||||
%%TODO char*
|
||||
|
||||
\begin{frame}[fragile]
|
||||
\frametitle{Scopes und Variablen-Lebenszeit}
|
||||
@@ -1579,6 +1581,8 @@ a != b; // a not equal to b!
|
||||
\end{cpp}
|
||||
\end{itemize}
|
||||
%%TODO: Bit-Operatoren
|
||||
|
||||
%%TODO Der ? Operator
|
||||
|
||||
\end{frame}
|
||||
|
||||
@@ -1819,6 +1823,7 @@ int sum_iterative(int n)
|
||||
\end{itemize}
|
||||
\end{frame}
|
||||
|
||||
%%TODO while true
|
||||
|
||||
\begin{frame}[fragile]
|
||||
\frametitle{Iteration mit for-Schleife I}
|
||||
@@ -1865,18 +1870,7 @@ int sum_for(int n)
|
||||
\end{cpp}
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}[fragile]
|
||||
\frametitle{Online Resourcen}
|
||||
|
||||
Hier noch ein paar hilfreiche Links fürs Programmieren
|
||||
|
||||
\begin{itemize}
|
||||
\item \url{https://cppreference.com} - C++ Referenz Dokumentation
|
||||
\item \url{https://linux.die.net/man/} - Online Man Pages
|
||||
\item \url{https://onlinegdb.com/online_c++_compiler} - Online C++ Compiler
|
||||
\end{itemize}
|
||||
|
||||
\end{frame}
|
||||
|
||||
|
||||
|
||||
@@ -1962,6 +1956,8 @@ int cube(int x)
|
||||
\end{cpp}
|
||||
\end{frame}
|
||||
|
||||
%%TODO Bibliotheken und Header-Dateien
|
||||
|
||||
\subsection{Namespaces}
|
||||
|
||||
\begin{frame}[fragile]
|
||||
@@ -2173,8 +2169,8 @@ namespace alice {
|
||||
\begin{itemize}
|
||||
\item git möchte wissen, wer wir sind:
|
||||
\begin{bash}[fontsize=\footnotesize,breaklines=true]
|
||||
git config --global user.name "Lorenz Braun"
|
||||
git config --global user.email "lorenz.braun@ziti.uni-heidelberg.de"
|
||||
git config --global user.name "Felix Spanier"
|
||||
git config --global user.email "felix.spanier@uni-heidelberg.de"
|
||||
\end{bash}
|
||||
\item Für Git-Status in der Kommandozeile folgende Zeilen in \bashinline{~/.bash_profile} einfügen:
|
||||
\begin{bash}[fontsize=\footnotesize]
|
||||
@@ -2190,7 +2186,7 @@ export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
Zum Anlegen des Repositories ins oberste Projektverzeichnis wechseln und dann:
|
||||
\begin{plaincode}[fontsize=\tiny]
|
||||
[git-tutorial]$ git init
|
||||
Initialized empty Git repository in /home/oklein/git-tutorial/.git/
|
||||
Initialized empty Git repository in /home/fspanier/git-tutorial/.git/
|
||||
[git-tutorial (master #)]$
|
||||
\end{plaincode}
|
||||
Damit existiert das Repository, aber es gibt noch keinen Commit:
|
||||
@@ -2253,13 +2249,13 @@ Untracked files:
|
||||
[git-tutorial (master)]$ git status
|
||||
On branch master
|
||||
nothing to commit, working tree clean
|
||||
[oklein@ipk git-tutorial (master)]$ git log
|
||||
[fspanier@ipk git-tutorial (master)]$ git log
|
||||
commit 1bb9ef87e4c235cc72e07009fc48cefb38df6154 (HEAD -> master)
|
||||
Author: Ole Klein <ole.klein@iwr.uni-heidelberg.de>
|
||||
Author: Felix Spanier <felix.spanier@uni-heidelberg.de>
|
||||
Date: Fri Dec 1 10:55:17 2017 +0100
|
||||
|
||||
Added input files
|
||||
[oklein@ipk git-tutorial (master)]$
|
||||
[fspanier@ipk git-tutorial (master)]$
|
||||
\end{plaincode}
|
||||
\end{frame}
|
||||
|
||||
@@ -2351,7 +2347,7 @@ no changes added to commit (use "git add" and/or "git commit -a")
|
||||
\begin{diff}[fontsize=\tiny]
|
||||
[git-tutorial (master)]$ git show master
|
||||
commit bab868dd7e345f1b660157a8bd4519cad175733d (HEAD -> master)
|
||||
Author: Ole Klein <ole.klein@iwr.uni-heidelberg.de>
|
||||
Author: Felix Spanier <felix.spanier@uni-heidelberg.de>
|
||||
Date: Fri Dec 1 11:06:27 2017 +0100
|
||||
|
||||
Added comment
|
||||
@@ -6189,6 +6185,20 @@ for (auto& br : v)
|
||||
\end{frame}
|
||||
|
||||
|
||||
|
||||
\begin{frame}[fragile]
|
||||
\frametitle{Online Resourcen}
|
||||
|
||||
Hier noch ein paar hilfreiche Links fürs Programmieren
|
||||
|
||||
\begin{itemize}
|
||||
\item \url{https://cppreference.com} - C++ Referenz Dokumentation
|
||||
\item \url{https://linux.die.net/man/} - Online Man Pages
|
||||
\item \url{https://onlinegdb.com/online_c++_compiler} - Online C++ Compiler
|
||||
\end{itemize}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\end{document}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user