diff --git a/c++-ss22/bobbytables.png b/c++-ss22/bobbytables.png new file mode 100644 index 0000000..530ddc0 Binary files /dev/null and b/c++-ss22/bobbytables.png differ diff --git a/c++-ss22/double.png b/c++-ss22/double.png new file mode 100644 index 0000000..e0b39b3 Binary files /dev/null and b/c++-ss22/double.png differ diff --git a/c++-ss22/vortrag.tex b/c++-ss22/vortrag.tex index 548e936..589dea3 100644 --- a/c++-ss22/vortrag.tex +++ b/c++-ss22/vortrag.tex @@ -1982,6 +1982,25 @@ int sum_for(int n) + \begin{frame}[fragile] + \frametitle{select} + \begin{cpp}[fontsize=\footnotesize] + int i = ...; + switch (i) + { + case 1: + case 2: + case 3: + do_stuff(); + break; + case 4: + do_other_stuff(); + break; + default: + do_default(); + } + \end{cpp} + \end{frame} %%%% Lecture 3 @@ -1992,25 +2011,6 @@ int sum_for(int n) % \label{sec:grobstruktur} -% \begin{frame}[fragile] -% \frametitle{select} -% \begin{cpp}[fontsize=\footnotesize] -% int i = ...; -% switch (i) -% { -% case 1: -% case 2: -% case 3: -% do_stuff(); -% break; -% case 4: -% do_other_stuff(); -% break; -% default: -% do_default(); -% } -% \end{cpp} -% \end{frame} \subsection{Deklaration und Definition von Funktionen}