diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-06-27 11:17:34 +0200 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-06-27 11:17:34 +0200 |
| commit | 9e625b89bac7e8daaf583e215f3a0df3dc250bb2 (patch) | |
| tree | ab295455fce73f726bd97a325a61d95aca77a508 /convenience | |
| parent | 5bb1ac05882e0df43a2afe0c363e0f503f51c357 (diff) | |
Math section rebuild, merged convinience and sonstiges section.
Diffstat (limited to 'convenience')
| -rw-r--r-- | convenience/convenience.tex | 26 | ||||
| -rw-r--r-- | convenience/split.cpp | 9 |
2 files changed, 0 insertions, 35 deletions
diff --git a/convenience/convenience.tex b/convenience/convenience.tex deleted file mode 100644 index 23ac7f2..0000000 --- a/convenience/convenience.tex +++ /dev/null @@ -1,26 +0,0 @@ -\section{Convenience-Methoden} - -\subsection{Zeileneingabe} -\lstinputlisting{convenience/split.cpp} - -\subsection{Sonstiges} -\begin{lstlisting} -// Alles-Header. -#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)) - -// STL-Debugging, Compiler flags. --D_GLIBCXX_DEBUG -#define _GLIBCXX_DEBUG -\end{lstlisting} diff --git a/convenience/split.cpp b/convenience/split.cpp deleted file mode 100644 index d7628f3..0000000 --- a/convenience/split.cpp +++ /dev/null @@ -1,9 +0,0 @@ -vector<string> split(string &s, string delim) { //zerlegt s anhand aller Zeichen in delim - vector<string> result; char *token; - token = strtok((char*)s.c_str(), (char*)delim.c_str()); - while (token != NULL) { - result.push_back(string(token)); - token = strtok(NULL, (char*)delim.c_str()); - } - return result; -}
\ No newline at end of file |
