A
Amfy
Гость
Гость
stock strcharsplit(const string[], &index, seperator=' ')
{
new result[20], i = 0;
if (index != 0 && string[index] != '\0') index++;
while (string[index] && string[index] != seperator && string[index] != '\r' && string[index] != '\n')
{
result[i++] = string[index++];
}
return result;
}
Функция strcharsplit быстрее strtok примерно на 20%
{
new result[20], i = 0;
if (index != 0 && string[index] != '\0') index++;
while (string[index] && string[index] != seperator && string[index] != '\r' && string[index] != '\n')
{
result[i++] = string[index++];
}
return result;
}
Функция strcharsplit быстрее strtok примерно на 20%