diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-10-10 21:55:09 +0200 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-10-10 21:55:09 +0200 |
| commit | edecc4b024ceb59b245f888f432018a4f1b7a02c (patch) | |
| tree | 384e7bafa4b2d9f196bc7135c32e1bdf7aecdb99 /other/split.cpp | |
| parent | ef7afcfd1294c873369245a940e3aa8accb67b60 (diff) | |
Typesetting other section.
Diffstat (limited to 'other/split.cpp')
| -rw-r--r-- | other/split.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/other/split.cpp b/other/split.cpp index ea7d5ff..5e3966c 100644 --- a/other/split.cpp +++ b/other/split.cpp @@ -1,4 +1,5 @@ -vector<string> split(string &s, string delim) { // Zerlegt s anhand aller Zeichen in delim. +// Zerlegt s anhand aller Zeichen in delim. +vector<string> split(string &s, string delim) { vector<string> result; char *token; token = strtok((char*)s.c_str(), (char*)delim.c_str()); while (token != NULL) { @@ -6,4 +7,4 @@ vector<string> split(string &s, string delim) { // Zerlegt s anhand aller Zeiche token = strtok(NULL, (char*)delim.c_str()); } return result; -}
\ No newline at end of file +} |
