summaryrefslogtreecommitdiff
path: root/convenience/convenience.tex
blob: 70f9ad923db6273fb0afd7245435be569baf6f29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
\section{Convenience-Methoden}

\subsection{Zeileneingabe}
\lstinputlisting{convenience/split.cpp}

\subsection{Sonstiges}
\begin{lstlisting}
// Alles-Haeder.
#include <bits/stdc++.h>

// Setzt das deutsche Tastaturlayout.
setxkbmap de

// Schnelle Ein-/Ausgabe mit cin/cout.
ios::sync_with_stdio(false);

// Set mit eigener Sortierfunktion. Typ muss nicht explizit angegeben werden.
set<point2, decltype(comp)> set1(comp);

// PI
#define PI (2*acos(0))
\end{lstlisting}