std::vector<std::string> explode(char* string, const char* delimiters)
{
std::vector<char *> working;
std::vector<std::string> store;
char* str = strtok(string, delimiters);
working.push_back(str);
while (str != NULL)
{
str = strtok(NULL, delimiters);
working.push_back(str);
}
std::string tmp;
for (unsigned int i = 0; i < working.size(); i++)
{
tmp = working.at(i);
store.push_back(tmp);
}
return store;
}
No errors, but it just crashes my whole computer.
When I try commenting out portions of this, MSVC goes apecrap on me and crashes.
Darkcoder won't help me. D: