Skip to content

Commit

Permalink
Fehlerkorrektur
Browse files Browse the repository at this point in the history
- Initialsierungsliste entfernt.
- New line bei comments vermieden.
  • Loading branch information
nselvara committed Aug 18, 2020
1 parent daa082b commit d2000bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions sections/CppCheatSheet.tex
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ \subsubsection{"`0..1:0..1"'}
void A::setB(B* pB) {
mB = pB;
}
// Oder mit Initialisierungsliste
void A::setB(B* pB): mB(pB) {}
\end{lstlisting}

\columnbreak
Expand Down Expand Up @@ -117,8 +115,7 @@ \subsubsection{"`1:0..1"'}
B::B(A* pA)
: mA(pA)
{
mA->setB(this);
// Kann auch im im Aufruf erfolgen
mA->setB(this); // Kann auch im Aufruf erfolgen
}
\end{lstlisting}

Expand Down Expand Up @@ -150,13 +147,12 @@ \subsubsection{"`0..1:0..n"'}

\textbf{Implementation:}
\begin{lstlisting}
#include A.h
#include B.h
#include "A.h"
#include "B.h"

A::A() {
for(int i = 0; i<n; i++) {
// Alle Werte auf 0 initialisieren
mB[i] = 0;
mB[i] = 0; // Alle Werte auf 0 initial.
}
}

Expand Down
2 changes: 1 addition & 1 deletion sections/OOA.tex
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ \subsection{Generalisierung (Vererbung) \balzert{52}}
Die spezialisierte Klasse erweitert die Liste der
Attribute, Operationen und Assoziationen der Basisklasse
\item[Generalisierungsmenge]
spezifiziert, nach welchen Kriterien eine Generalisierungstruktur erstellt wird.
spezifiziert, nach welchen Kriterien eine Generalisierungsstruktur erstellt wird.
(z.B. nach Tätigkeit, Job, etc.)}
\parbox{9cm}{
\scalebox{1.3}{\includegraphics[width=5cm]{./bilder/Mechanismus_Vererbung}}
Expand Down

0 comments on commit d2000bc

Please sign in to comment.