diff options
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 +} |
